Skip to content

env

Zova SSR provides some env environment variables, which is very convenient to configure the behaviors of certain functions and features

Configurable environment variables

NameDescription
SSR_COOKIE_THEMENAMEWhether to enable cookie used to save ThemeName
SSR_COOKIE_THEMEDARKWhether to enable cookie used to save ThemeDark
SSR_COOKIE_THEMEDARK_DEFAULTThe default ThemeDark value for SSR_COOKIE_THEMEDARK
SSR_BODYREADYOBSERVERWhether to observe the body dom loading process
SSR_API_BASE_URLThe API BaseURL on ssr server
SSR_PROD_PORTThe port of ssr production server

Dynamic environment variables

The following are the environment variables set according to the runtime environment:

NameDescription
SSRIf SSR mode
DEVIf Development
PRODIf Production
CLIENTIf Client
SERVERIf Server

Released under the MIT License.