Add VPS deployment automation

This change adds staging and production deployment configuration for the VPS setup, including `.env.deploy.example`, `.env.staging`, and updated production environment values. It also introduces a PowerShell deployment script that builds the app, packages the Next.js artifact, uploads it to the server, and reloads PM2. Package scripts were added for staging and production deploys, and the TypeScript config now excludes legacy `.old` files.
This commit is contained in:
Ichsan Kurniawan
2026-10-05 19:52:11 +07:00
parent ffcf3c6e58
commit d0db9ee429
9 changed files with 919 additions and 235 deletions
+8 -15
View File
@@ -1,21 +1,11 @@
BASE_PATH = ""
NEXT_PUBLIC_APP_URL="https://his.nutech-integrasi.com"
NEXT_PUBLIC_APP_URL="http://hats.hisnutech.my.id"
# BASE_URL_API = https://hats-his.nutech-integrasi.com/presence-api/api/v1
# BASE_URL_IMG = https://hats-his.nutech-integrasi.com/presence-api/
# NEXTAUTH_URL = https://hats-his.nutech-integrasi.com
# NEXTAUTH_URL_INTERNAL = http://36.66.3.44:7006
BASE_URL_API = https://api-hats.hisnutech.my.id/api/v1
BASE_URL_IMG = https://api-hats.hisnutech.my.id/
# BASE_URL_API = https://36.66.3.44/presence-api/api/v1
# BASE_URL_IMG = https://36.66.3.44/presence-api/
# NEXTAUTH_URL = https://36.66.3.44
BASE_URL_API = https://his.nutech-integrasi.com/presence-api/api/v1
BASE_URL_IMG = https://his.nutech-integrasi.com/presence-api/
NEXTAUTH_URL = https://his.nutech-integrasi.com
NEXTAUTH_URL = http://hats.hisnutech.my.id
NEXTAUTH_URL_INTERNAL = http://36.66.3.44:7002
# NEXTAUTH_URL = http://localhost:7002
# NEXTAUTH_URL_INTERNAL = http://localhost:7002
NEXTAUTH_SECRET = 4339d50684523526005c1fcb34be0bb1
@@ -25,4 +15,7 @@ FIREBASE_APP_ID = "1:422528660020:web:db16e1cba4d357e32f1061"
DEVICE_CODE = "40001"
NEXT_PUBLIC_HATS_SUPPORT_NAME = "Amalia"
NEXT_PUBLIC_HATS_SUPPORT_PHONE = "6285214074002"
NEXT_PUBLIC_APP_VERSION = "v1.1.0"
NEXT_PUBLIC_APP_VERSION = "v1.2.0"
NEXT_PUBLIC_MANAGER_USER_ID = '2'
NEXT_PUBLIC_S3_IMAGE_URL = https://cdn.hisnutech.my.id/public