diff --git a/.env.example b/.env.example index 0b0bd76..d8ab4ea 100644 --- a/.env.example +++ b/.env.example @@ -12,11 +12,11 @@ FRONTEND_URL=http://localhost:5173 # SuperOAuth — service externe d'authentification SUPER_OAUTH_URL=http://localhost:3000 -SUPER_OAUTH_JWT_SECRET= +SUPER_OAUTH_JWT_SECRET= # Cookie signing COOKIE_SECRET= # Twitch EventSub webhook -TWITCH_WEBHOOK_SECRET= +TWITCH_WEBHOOK_SECRET= TWITCH_CLIENT_ID= diff --git a/src/app.module.ts b/src/app.module.ts index 87c1d56..6d72e0f 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -25,7 +25,7 @@ import { HealthController } from './common/health.controller'; type: 'mysql', url: config.get('DATABASE_URL'), autoLoadEntities: true, - synchronize: true, // first deploy only — revert after tables created + synchronize: config.get('NODE_ENV') !== 'production', logging: config.get('NODE_ENV') === 'development', }), }),