Environment variables
This is the list of environment variables used by @front-commerce/remix package.
| Environment variable | Default value | Description |
|---|---|---|
FRONT_COMMERCE_COOKIE_MAX_AGE_IN_SECONDS | 1 day | The cookie max age in seconds. |
FRONT_COMMERCE_SERVER_TRAILING_SLASH | remove | The trailing slash behavior. Possible values are remove, add, or ignore. |
FRONT_COMMERCE_SERVER_DISABLE_TRAILING_SLASH_REDIRECT | false | Deprecated use FRONT_COMMERCE_SERVER_TRAILING_SLASH=ignore instead. Controls whether to disable trailing slash redirection. |
FRONT_COMMERCE_DANGEROUSLY_ENABLE_SOURCE_MAPS | false | Re-enables Node.js source maps support in production. Dangerous: the first error then makes Node.js synchronously decode the server bundles source maps into a cache that is never released (hundreds of MB of retained memory and a multi-second event loop freeze). Only use it for a temporary debugging session. Note: the automatic production disabling requires tsx >= 4; under tsx 3.x, source-map-support keeps decoding source maps and a startup warning is logged. |