Merge pull request #199 from R0m1k3/1.1

Restore database connection for production environment
This commit is contained in:
LogiFlow authored and GitHub committed 2025-08-17 18:13:06 +02:00
commit 52bf762c3c
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -2,4 +2,4 @@
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_localhost FALSE / FALSE 1755533276 connect.sid s%3AeSuU-8Im6I46mIPMKRDM-0aPCdhWTzSL.7GTr5iIPSvj6vp5hpsbHQAs979W057UO9Lr3uRDpJ3I
#HttpOnly_localhost FALSE / FALSE 1755533549 connect.sid s%3AGRBodJanN_-I3rKEedKB2fTigAi5MCxd.DwfSaA4EL79Luvbib4T399slEhtQV%2Fw%2FbjUwjRGRU3g
+1 -2
View File
@@ -3401,8 +3401,7 @@ console.log('🔗 Database initialization:', {
dbHost: process.env.DATABASE_URL?.split('@')[1]?.split('/')[0] || 'unknown'
});
// TEMPORARY: Force MemStorage for cache testing
export const storage: IStorage = new MemStorage();
export const storage: IStorage = isProduction ? new DatabaseStorage() : new MemStorage();
if (isProduction) {
console.log('✅ Using DatabaseStorage (production PostgreSQL)');
} else {