Skip to content

Commit 89f88ef

Browse files
authored
docs: update deployment.md for github custom domains (#6239)
Adding information about omitting publicpath config if you deploy to a custom domain.
1 parent 382592a commit 89f88ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/deployment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ If you are using the PWA plugin, your app must be served over HTTPS so that [Ser
3939

4040
1. Set correct `publicPath` in `vue.config.js`.
4141

42-
If you are deploying to `https://<USERNAME>.github.io/`, you can omit `publicPath` as it defaults to `"/"`.
42+
If you are deploying to `https://<USERNAME>.github.io/` or to a custom domain, you can omit `publicPath` as it defaults to `"/"`.
4343

4444
If you are deploying to `https://<USERNAME>.github.io/<REPO>/`, (i.e. your repository is at `https://github.com/<USERNAME>/<REPO>`), set `publicPath` to `"/<REPO>/"`. For example, if your repo name is "my-project", your `vue.config.js` should look like this:
4545

0 commit comments

Comments
 (0)