Separate frontend app API from backend API in production

This commit is contained in:
2026-05-11 14:21:18 +07:00
parent 23dd37424a
commit 9e8f4fabcb
4 changed files with 44 additions and 12 deletions

View File

@ -1,12 +1,12 @@
NODE_ENV=production
DATABASE_URL=postgresql://bizone:change-this-postgres-password@127.0.0.1:5432/wa_dashboard
DATABASE_URL=postgresql://bizone:%2BQ%26xN%2486LbSA%3Cav%3C@127.0.0.1:5432/wa_dashboard
REDIS_URL=redis://127.0.0.1:6379
PORT=3001
FRONTEND_ORIGIN=https://portal.bizone.id
PUBLIC_API_URL=https://portal.bizone.id
NEXT_PUBLIC_API_URL=https://portal.bizone.id/api
NEXT_PUBLIC_API_URL=https://portal.bizone.id/backend-api
JWT_SECRET=UsmlPBa61fKDgTjUR+9sS9f5SKw3OF7X0CjGWoHibg2eF7gQO6sS57pc2Hj8XIv4
JWT_EXPIRES_IN=1d