diff --git a/docs/guide/deployment.md b/docs/guide/deployment.md index eda245f380..8332457b77 100644 --- a/docs/guide/deployment.md +++ b/docs/guide/deployment.md @@ -133,6 +133,15 @@ Commit both the `.gitlab-ci.yml` and `vue.config.js` files before pushing to you Also checkout [vue-cli-plugin-netlify-lambda](https://github.com/netlify/vue-cli-plugin-netlify-lambda). +In order to receive direct hits using `history mode` on Vue Router, you need to create a file called `_redirects` under `/public` with the following content: + +``` +# Netlify settings for single-page application +/* /index.html 200 +``` + +More information on [Netlify redirects documentation](https://www.netlify.com/docs/redirects/#history-pushstate-and-single-page-apps). + ### Amazon S3 See [vue-cli-plugin-s3-deploy](https://github.com/multiplegeorges/vue-cli-plugin-s3-deploy).