Skip to content

Commit

Permalink
Merge pull request #2858 from evidence-dev/docs/base-path
Browse files Browse the repository at this point in the history
Clarify base path docs
  • Loading branch information
zachstence authored Nov 27, 2024
2 parents 9fd3c70 + cb33b91 commit c5a9b43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sites/docs/pages/deployment/base-paths/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ The base path must:

Your `pages/index.md` file will be served from `https://my-domain.com/my-base-path`, and other pages will be served relative to this path.

## Configuring the Build Directory
## Configuring the Build Directory in `package.json`

Evidence builds your app to the `build` directory, rather than to `build/my-base-path`.

To modify the build directory, set the `EVIDENCE_BUILD_DIR` environment variable:
To modify the build directory, set the `EVIDENCE_BUILD_DIR` environment variable in `package.json`

```json
"build": "EVIDENCE_BUILD_DIR=./build/my-base-path evidence build"
Expand All @@ -56,4 +56,4 @@ For example:

## Evidence Cloud

Deploying apps with custom base paths is supported in Evidence Cloud's [Enterprise plan](https://evidence.dev/cloud).
Deploying apps with custom base paths is supported in Evidence Cloud's [Enterprise plan](https://evidence.dev/cloud).

0 comments on commit c5a9b43

Please sign in to comment.