mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-11 17:29:48 +02:00
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:
1 parent
e38d967015
commit
f008f3f905
2 files changed
+3
-4
No files matched your search
+1
-2
@@ -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 });
|
||||
Reference in new issue
Block a user