Switch Prisma from SQLite to PostgreSQL for production deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-30 19:14:06 +03:30
co-authored by Cursor
parent a6b3457779
commit 01f0b82ac6
16 changed files with 332 additions and 6 deletions
+8 -2
View File
@@ -1,8 +1,14 @@
PORT=3001
DATABASE_URL="file:./dev.db"
NODE_ENV=development
# PostgreSQL (local Docker or remote). SQLite دیگر پشتیبانی نمی‌شود.
# مثال لوکال: postgresql://postgres:postgres@127.0.0.1:5432/superadmin?schema=public
# مثال سرور: postgresql://montime:PASSWORD@127.0.0.1:5432/superadmin?schema=public
DATABASE_URL="postgresql://montime:CHANGE_ME@127.0.0.1:5432/superadmin?schema=public"
JWT_SECRET="change-me-in-production-use-long-random-string"
JWT_EXPIRES_IN="7d"
CORS_ORIGIN="http://localhost:5173,http://localhost:3100"
CORS_ORIGIN="http://localhost:5173,http://localhost:3100,https://adm.montzar.ir"
# آدرس عمومی API برای ساخت URL لوگو (در پروداکشن دامنه HTTPS سوپرادمین)
PUBLIC_API_URL="http://localhost:3001"