Skip to content

Configuration ​

Environment variables are read from .env and exposed via nuxt.config.js (env and publicRuntimeConfig). Do not commit secrets; use placeholders or a secure secret store in production.

publicRuntimeConfig ​

Available as $config or context.$config in the app.

VariableDescription
appNameApplication display name (APP_NAME)
baseUrlFrontend base URL (BASE_URL)
apiBaseUrlBackend API base URL (API_BASE_URL)
backendUrlBackend URL (BACKEND_URL or BACKAND_URL)
damBaseUrlDAM frontend URL (DAM_FRONTEND_URL)
userPlaceHolderImgPlaceholder image URL for users (USER_PLACEHOLDER_IMG)
googleAuthUrlGoogle OAuth URL (GOOGLE_AUTH_URL)
LIMIT_WORKSPACE_IDOptional workspace ID limit (LIMIT_WORKSPACE_ID)
APP_ENVEnvironment name (APP_ENV)
CNAMECNAME / domain (CNAME)

env ​

Exposed as process.env.* in build and at runtime where Nuxt injects them.

VariableDescription
INSIGHTS_ACCESS_PERSONSInsights access config
BASE_URLFrontend base URL
API_BASE_URLBackend API base URL
DAM_FRONTEND_URLDAM frontend URL
GOOGLE_DRIVE_CLIENT_IDGoogle Drive OAuth client ID
GOOLGE_DRIVE_CLIENT_SECRETGoogle Drive OAuth client secret (note typo in name)
REDIRECT_URIOAuth redirect URI
DROPBOX_OAUTH_URIDropbox OAuth URI
DROPBOX_AUTH_VERIFICATION_URIDropbox verification URI
DROPBOX_APP_IDDropbox app ID
DROPBOX_APP_SECRETDropbox app secret
DROPBOX_AUTH_REDIRECTDropbox redirect URI
MOBILE_APP_DOMAINMobile app domain (e.g. for apple-itunes-app meta)
DAM_UPLOAD_AUTOTAG_ENABLEDEnable auto-tagging on DAM upload
SUPPORT_BASE_URLSupport portal URL
IS_SUPPORT_PLATFORMWhether running as support platform (affects login/logout endpoints)
BACKAND_URLBackend URL (fallback)
STRIPE_PUBLISHABLE_KEYStripe publishable key
STRIPE_CHECKOUT_MODEStripe checkout mode (e.g. prebuilt)
STRIPE_WEBHOOK_SECRETStripe webhook secret
STRIPE_WEBHOOK_ENDPOINTStripe webhook endpoint path
APP_ENVEnvironment
TYPESENSE_HOSTTypesense host
TYPESENSE_PORTTypesense port
TYPESENSE_PROTOCOLTypesense protocol (http/https)
TYPESENSE_API_KEYTypesense API key
TYPESENSE_CONNECTION_TIMEOUTTypesense connection timeout
ZIP_DOWNLOAD_URLURL for zip download worker
EXTERNAL_UPLOAD_LIMITLimit for external uploads
G_PLACES_API_KEYGoogle Places API key (head script)
PORTDev server port
HTTPSSet to 'true' for Axios HTTPS
SECURE_AUTH_COOKIESet to 'true' for secure auth cookie
PUSHER_KEYPusher key (Laravel Echo)
PUSHER_CLUSTERPusher cluster
PUSHER_AUTH_ENDPOINTPusher auth endpoint

Auth (nuxt.config) ​

  • redirect: login and logout redirect to /.
  • cookie.options: path /, expires 365, secure when SECURE_AUTH_COOKIE === 'true'.
  • local strategy: token from data.access_token, user from data.user; login URL is support-login when IS_SUPPORT_PLATFORM === 'true', else login; logout URL is terminate-token when support, else logout.
  • external strategy: scheme ~/schemes/external; token data.token, Bearer, maxAge 24h; user from data, autoFetch; endpoints as in nuxt.config.