diff --git a/docs/guide/deployment.md b/docs/guide/deployment.md index a8199cb9a2..95dbd3aa57 100644 --- a/docs/guide/deployment.md +++ b/docs/guide/deployment.md @@ -44,6 +44,8 @@ If you are using the PWA plugin, your app must be served over HTTPS so that [Ser If you are deploying to `https://.github.io//`, (i.e. your repository is at `https://github.com//`), set `publicPath` to `"//"`. For example, if your repo name is "my-project", your `vue.config.js` should look like this: ``` js + // vue.config.js file to be place in the root of your repository + module.exports = { publicPath: process.env.NODE_ENV === 'production' ? '/my-project/'