Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 (@docz): fix client-side routing #21

Merged
merged 1 commit into from
Apr 16, 2019
Merged

Conversation

aamorozov
Copy link
Contributor

@aamorozov aamorozov commented Apr 16, 2019

Reference #20.
PR adds a docz-plugin-netlify plugin that generates a _redirects file and puts it in the folder with compiled assets. Lets netlify rewrite all requests to any file that doesn't exist to index page -> react router handles the redirects afterwards.

Copy link
Contributor

@lettertwo lettertwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Option 3! didn't see that coming. LGTM

@aamorozov aamorozov merged commit f0d7941 into master Apr 16, 2019
@aamorozov aamorozov deleted the docz-client-side-fix branch April 16, 2019 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants