use vite+

This commit is contained in:
Amruth Pillai
2026-03-18 22:03:24 +01:00
parent d1dac8aeca
commit 192880e416
427 changed files with 58915 additions and 58759 deletions
+9 -9
View File
@@ -13,16 +13,16 @@ const localPool = new Pool({ connectionString: localUrl });
const localDb = drizzle({ client: localPool });
try {
const productionResult = await productionDb.execute(sql`SELECT 1 as connected`);
console.log("✅ Production database connection successful", JSON.stringify(productionResult));
const productionResult = await productionDb.execute(sql`SELECT 1 as connected`);
console.log("✅ Production database connection successful", JSON.stringify(productionResult));
const localResult = await localDb.execute(sql`SELECT 1 as connected`);
console.log("✅ Local database connection successful", JSON.stringify(localResult));
const localResult = await localDb.execute(sql`SELECT 1 as connected`);
console.log("✅ Local database connection successful", JSON.stringify(localResult));
} catch (error) {
console.error("🚨 Database connection failed:", error);
process.exit(1);
console.error("🚨 Database connection failed:", error);
process.exit(1);
} finally {
await productionPool.end();
await localPool.end();
process.exit(0);
await productionPool.end();
await localPool.end();
process.exit(0);
}