Skip to content

Commit 604e636

Browse files
bneumann97Copilot
andauthored
docs: generate sourcemaps env var (#2369)
* docs: generate sourcemaps env var * docs: add security hint Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9f60e5b commit 604e636

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,6 +1971,7 @@ sm
19711971
smartbar
19721972
snakeCase
19731973
sortings
1974+
sourcemaps
19741975
sql
19751976
src
19761977
srcset

guides/hosting/configurations/shopware/environment-variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ This page lists all environment variables that can be used to configure Shopware
3030
| `ENABLE_OPENSEARCH_FOR_ADMIN_API` | (empty) | When set to `1`, applies OpenSearch globally for supported Admin API searches and listings in Administration. Requires `ADMIN_OPENSEARCH_URL` and `SHOPWARE_ADMIN_ES_ENABLED=1` to be configured. Experimental feature (since 6.7.9.0) |
3131
| `ENABLE_SERVICES` | `auto` | Determines if services are enabled, auto detects that based on `APP_ENV`, other possible values are `true` (or `1`) and `false` (or `0`). When set to `0`, Shopware Services won't be installed on the system |
3232
| `FASTLY_API_KEY` | (empty) | API key for Fastly CDN integration. **Keep this value secure and do not commit it to version control.** |
33+
| `GENERATE_SOURCEMAPS` | (empty) | Set to `true` to emit JavaScript sourcemaps during production builds (`NODE_ENV=production`). Applies to the Storefront webpack build and all Vite builds (Administration core, Administration extension plugins, and Storefront components). Has no effect in non-production environments, where sourcemaps are always generated. **Security note:** sourcemaps may expose source code; enable only in trusted environments or configure your web server/CDN to not serve `*.map` files. (since 6.7.13.0) |
3334
| `INSTANCE_ID` | (empty) | Unique Identifier for the Store: Can be generated with `openssl rand -hex 32` |
3435
| `LOCK_DSN` | `flock` | DSN for Symfony locking |
3536
| `MAILER_DSN` | `null://localhost` | Mailer DSN (Admin Configuration overwrites this) |

0 commit comments

Comments
 (0)