We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83396a5 commit 357230dCopy full SHA for 357230d
docs/docs/how-to/previews-deploys-hosting/path-prefix.md
@@ -28,12 +28,16 @@ module.exports = {
28
29
## Build
30
31
-The final step is to build your application with the `--prefix-paths` flag, like so:
+The final step is to build your application with either the `--prefix-paths` flag or `PREFIX_PATHS` environment variable, like so:
32
33
```shell
34
gatsby build --prefix-paths
35
```
36
37
+```shell
38
+PREFIX_PATHS=true gatsby build
39
+```
40
+
41
If this flag is not passed, Gatsby will ignore your `pathPrefix` and build the site as if hosted from the root domain.
42
43
## Serve
0 commit comments