1dd7053ebd
Backend : sentry/sentry-symfony branché en prod uniquement (bundle prod-only, exceptions seules, 4xx ignorés, release = app.version), DSN via SENTRY_DSN (runtime, infra/prod/.env). Frontend : @sentry/nuxt chargé seulement si NUXT_PUBLIC_SENTRY_DSN présent (donc au build prod), upload des source maps gated sur les secrets. DSN front et secrets passés en build-args (Dockerfile) depuis les secrets Gitea (CI). Doc README (section Error tracking) + .env.example. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
30 lines
1.3 KiB
PHP
30 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use ApiPlatform\Symfony\Bundle\ApiPlatformBundle;
|
|
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
|
|
use Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle;
|
|
use Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle;
|
|
use Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle;
|
|
use Nelmio\CorsBundle\NelmioCorsBundle;
|
|
use Sentry\SentryBundle\SentryBundle;
|
|
use Symfony\AI\McpBundle\McpBundle;
|
|
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
|
|
use Symfony\Bundle\MonologBundle\MonologBundle;
|
|
use Symfony\Bundle\SecurityBundle\SecurityBundle;
|
|
|
|
return [
|
|
FrameworkBundle::class => ['all' => true],
|
|
SecurityBundle::class => ['all' => true],
|
|
DoctrineBundle::class => ['all' => true],
|
|
DoctrineMigrationsBundle::class => ['all' => true],
|
|
NelmioCorsBundle::class => ['all' => true],
|
|
ApiPlatformBundle::class => ['all' => true],
|
|
DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
|
|
LexikJWTAuthenticationBundle::class => ['all' => true],
|
|
McpBundle::class => ['all' => true],
|
|
MonologBundle::class => ['all' => true],
|
|
SentryBundle::class => ['prod' => true],
|
|
];
|