Skip to main content
Version: 3.x

Environment variables

This is the list of environment variables used by @front-commerce/remix package.

Environment variableDefault valueDescription
FRONT_COMMERCE_COOKIE_MAX_AGE_IN_SECONDS1 dayThe cookie max age in seconds.
FRONT_COMMERCE_SERVER_TRAILING_SLASHremoveThe trailing slash behavior. Possible values are remove, add, or ignore.
FRONT_COMMERCE_SERVER_DISABLE_TRAILING_SLASH_REDIRECTfalseDeprecated use FRONT_COMMERCE_SERVER_TRAILING_SLASH=ignore instead. Controls whether to disable trailing slash redirection.
FRONT_COMMERCE_DANGEROUSLY_ENABLE_SOURCE_MAPSfalseRe-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.