Merge branch 'rename-subdir-var' into 'develop'

Rename FE_BASE_PATH to FE_SUBDIRECTORY

See merge request soapbox-pub/soapbox-fe!720
This commit is contained in:
Alex Gleason 2021-09-05 19:31:50 +00:00
commit e0ead4a20e
14 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,7 @@
/node_modules/**
/static/**
/static-test/**
/public/**
/tmp/**
/coverage/**
!.eslintrc.js

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -4,7 +4,7 @@ When compiling Soapbox FE, environment variables may be passed to change the bui
For example:
```sh
NODE_ENV="production" FE_BUILD_DIR="public" FE_BASE_PATH="/soapbox" yarn build
NODE_ENV="production" FE_BUILD_DIR="public" FE_SUBDIRECTORY="/soapbox" yarn build
```
### `NODE_ENV`
@ -43,7 +43,7 @@ Options:
Default: `"static"`
### `FE_BASE_PATH`
### `FE_SUBDIRECTORY`
Subdirectory to host Soapbox FE out of.
When hosting on a subdirectory, you must create a custom build for it.
@ -58,5 +58,5 @@ Default: `"/"`
For example, if you want to host the build on `https://gleasonator.com/soapbox`, you can compile it like this:
```sh
NODE_ENV="production" FE_BASE_PATH="/soapbox" yarn build
NODE_ENV="production" FE_SUBDIRECTORY="/soapbox" yarn build
```

Binary file not shown.

Binary file not shown.