Skip to content

Commit 4e3415c

Browse files
Merge pull request #1812 from strapi/chore/source-maps-env
Chore: Add docs for `STRAPI_ENFORCE_SOURCEMAPS` env variable
2 parents ed1656e + 312aa61 commit 4e3415c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docusaurus/docs/dev-docs/configurations/environment.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ Strapi provides the following environment variables:
2222
| `BROWSER` | Open the admin panel in the browser after startup | `Boolean` | `true` |
2323
| `ENV_PATH` | Path to the file that contains your environment variables | `String` | `'./.env'` |
2424
| `STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE` <br/><br/>_Optional_ | Initialization locale for the application, if the [Internationalization (i18n) plugin](/dev-docs/plugins/i18n) is installed and enabled on Content-Types (see [Configuration of i18n in production environments](/dev-docs/plugins/i18n#configuration-of-the-default-locale)) | `String` | `'en'` |
25+
| `STRAPI_ENFORCE_SOURCEMAPS` | Forces the bundler to emit source-maps, which is helpful for debugging errors in the admin app. | `boolean` | `false` |
2526
| `FAST_REFRESH` | Use [react-refresh](https://github.com/pmmmwh/react-refresh-webpack-plugin) to enable "Fast Refresh" for near-instant feedback while developing the Strapi admin panel. | `boolean` | `true` |
2627

28+
2729
:::tip
2830
Prefixing an environment variable name with `STRAPI_ADMIN_` exposes the variable to the admin front end (e.g., `STRAPI_ADMIN_MY_PLUGIN_VARIABLE` is accessible through `process.env.STRAPI_ADMIN_MY_PLUGIN_VARIABLE`).
2931
:::

0 commit comments

Comments
 (0)