概要
NetlifyでホスティングしてるSPAがブラウザリロードすると404になっちゃう
対応
これの通り
https://www.netlify.com/docs/redirects/#history-pushstate-and-single-page-apps
方法
公開用のディレクトリ(自分の場合 /public
)に _redirects
ファイルを作成して以下を記述
/* /index.html 200
いえい
More than 5 years have passed since last update.
NetlifyでホスティングしてるSPAがブラウザリロードすると404になっちゃう
これの通り
https://www.netlify.com/docs/redirects/#history-pushstate-and-single-page-apps
公開用のディレクトリ(自分の場合 /public
)に _redirects
ファイルを作成して以下を記述
/* /index.html 200
いえい
Register as a new user and use Qiita more conveniently