Switch Prisma from SQLite to PostgreSQL for production deploy.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+8
-2
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user