feat: update environment configuration for production and add Docker support
This commit is contained in:
+3
-1
@@ -6,6 +6,8 @@ export default defineConfig({
|
||||
path: "prisma/migrations",
|
||||
},
|
||||
datasource: {
|
||||
url: "file:./prisma/lootah.db",
|
||||
// In production (Coolify), set DATABASE_URL=file:/app/prisma/lootah.db
|
||||
// and mount /app/prisma as a persistent volume.
|
||||
url: process.env.DATABASE_URL ?? "file:./prisma/lootah.db",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user