env
Zova SSR provides some env environment variables, which is very convenient to configure the behaviors of certain functions and features
Configurable environment variables
Name | Description |
---|---|
SSR_COOKIE_THEMENAME | Whether to enable cookie used to save ThemeName |
SSR_COOKIE_THEMEDARK | Whether to enable cookie used to save ThemeDark |
SSR_COOKIE_THEMEDARK_DEFAULT | The default ThemeDark value for SSR_COOKIE_THEMEDARK |
SSR_BODYREADYOBSERVER | Whether to observe the body dom loading process |
SSR_API_BASE_URL | The API BaseURL on ssr server |
SSR_PROD_PORT | The port of ssr production server |
Dynamic environment variables
The following are the environment variables set according to the runtime environment:
Name | Description |
---|---|
SSR | If SSR mode |
DEV | If Development |
PROD | If Production |
CLIENT | If Client |
SERVER | If Server |