From: Eduardo San Martin Morote Date: Mon, 5 Oct 2020 12:28:48 +0000 (+0200) Subject: docs: update netlify section X-Git-Tag: v4.0.0-rc.1~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3fa9012c0de19b95717c0e95afcd1c0b3b9c2ab4;p=thirdparty%2Fvuejs%2Frouter.git docs: update netlify section --- diff --git a/docs/guide/essentials/history-mode.md b/docs/guide/essentials/history-mode.md index ecc941dc..5cc9ca5d 100644 --- a/docs/guide/essentials/history-mode.md +++ b/docs/guide/essentials/history-mode.md @@ -151,13 +151,15 @@ Add this to your `firebase.json`: ### Netlify -Create a `_redirects` file with the following code: +Create a `_redirects` file that is included with your deployed files: ``` -/* /index.html 200 +/* /index.html 200 ``` -Read more about [Netlify redirecting options](https://docs.netlify.com/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps) for more info. +In vue-cli, nuxt, and vite projects, this file usually goes under a folder named `static` or `public`. + +You can more about the syntax on [Netlify documentation](https://docs.netlify.com/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps). You can also [create a `netlify.toml`](https://docs.netlify.com/configure-builds/file-based-configuration/) to combine _redirections_ with other Netlify features. ## Caveat