mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-06 07:30:17 +02:00
c424e25d57
Install @sentry/browser via AssetMapper and initialize the feedback integration on all backoffice pages. The CDN loader script is moved to an overridable block so backoffice pages use the npm SDK without double-initialising Sentry. Sentry is initialised only when a DSN is configured (SENTRY_DSN env var). When a user is logged in their email is pre-filled in the feedback form via Sentry.setUser(); both name and email remain optional so anonymous submissions are supported by simply leaving those fields empty.
10 lines
196 B
YAML
10 lines
196 B
YAML
twig:
|
|
file_name_pattern: '*.twig'
|
|
form_themes: [ 'bootstrap_5_layout.html.twig' ]
|
|
globals:
|
|
sentry_dsn: '%env(SENTRY_DSN)%'
|
|
|
|
when@test:
|
|
twig:
|
|
strict_variables: true
|