Resolve issues preventing the application from starting correctly

Enable SSL for production database connections and replace CameraModal component.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dba29e89-b855-4de3-a5a0-765e63b7aa34
This commit is contained in:
michaelschal committed 2025-07-19 13:08:57 +00:00
1 parent e38d967015
commit f008f3f905
2 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -10,8 +10,7 @@ if (!process.env.DATABASE_URL) {
export const pool = new Pool({
connectionString: process.env.DATABASE_URL,
// Configuration pour PostgreSQL local
ssl: false
ssl: process.env.NODE_ENV === 'production' ? { rejectUnauthorized: false } : false
});
export const db = drizzle(pool, { schema });