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_COOKIEWhether to enable cookie for ssr
SSR_COOKIE_THEMEDARK_DEFAULTThe default ThemeDark value when SSR_COOKIE is true
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.