ℹ️ .env variables are loaded automatically by Next.js. Refer to this documentation for more information. Loading Environment Variables.
Good to know:
.env
,.env.development
, and.env.production
files should be included in your repository as they define defaults. .env*.local should be added to .gitignore, as those files are intended to be ignored. .env.local is where secrets can be stored.
Key | Responsible | Type | Secret | Policy | Default value | Description | Docs |
---|---|---|---|---|---|---|---|
NEXT_PUBLIC_API_URL |
DevOps | string |
No | DEFAULT |
next_base.dev.mrmilu.com |
NextJS App URL | - |
NEXT_PUBLIC_REST_PROXY_ENDPOINT |
DevOps | string |
No | REQUIRED-IN-RELEASE-ENV |
- | Proxy Endpoint URL | - |
NEXT_PUBLIC_SENTRY_DSN |
DevOps | string |
No | REQUIRED-IN-RELEASE-ENV |
- | Sentry DSN | Sentry DSN |
NEXT_PUBLIC_SENTRY_ENABLED |
DevOps | boolean |
No | FEATURE-FLAG |
- | Enables/Disables Sentry monitoring | - |
SENTRY_URL |
DevOps | string |
No | REQUIRED-IN-RELEASE-ENV |
- | The base URL of your Sentry instance. | Sentry Webpack Plugin Options (url) |
SENTRY_ORG |
DevOps | string |
No | REQUIRED-IN-RELEASE-ENV |
- | The slug of the Sentry organization associated with the app. | Sentry Webpack Plugin Options (org) |
SENTRY_PROJECT |
DevOps | string |
No | REQUIRED-IN-RELEASE-ENV |
- | The slug of the Sentry project associated with the app. | Sentry Webpack Plugin Options (project) |
SENTRY_AUTH_TOKEN |
DevOps | string |
Yes | REQUIRED-IN-RELEASE-ENV |
- | The authentication token to use for all communication with Sentry. Can be obtained from https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/. | Sentry Webpack Plugin Options (authToken) |
DEFAULT
: This environment variable has a default value that works on most common usagesREQUIRED
: This environment variable must be set, otherwise the application will not start throwing an exceptionREQUIRED-IN-RELEASE-ENV
: This environment variable must be set in release environments, the application will start but won't comply requirements: security, functionality, integration, performance, etcFEATURE-FLAG
: This environment variable changes a feature behaviorDEPRECATED
: Deprecated variables, see deprecated variables section
boolean
: string variable containing a boolean valuestring
: string variablefs_path
: string variable containing a path in the file systememail
: string variable containing an emailstring-list-by-comma
: list string values extracted by: split (using,
as the separator) and trim