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

netlify上にデプロイした環境でリソースを直接URLで指定すると404エラーになる #14

Open
sin9270 opened this issue Feb 24, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@sin9270
Copy link
Owner

sin9270 commented Feb 24, 2020

例えば、 https://reverent-lumiere-e24db3.netlify.com/active-task-list にアクセスすると、activeなタスク一覧のページが表示されるはずだが、404エラーになる。netlify上にデプロイした環境で react-router が動作しないことが原因?

次の記事を参考に、 public/_redirects を作成する。
https://medium.com/@rexben/how-to-fix-page-not-found-on-netlify-with-react-router-dom-e0520692be5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant