|
|
2 nedēļas atpakaļ | |
|---|---|---|
| .. | ||
| README.md | 2 nedēļas atpakaļ | |
.env.production 의 환경별 양식. Jenkins Secret File 로 업로드되어 빌드 시점에 주입됩니다.
config-templates/
├── dev/ (CTL-Window-Server / antooza.com — dev 서버 운영 도메인)
│ └── .env.production.template
└── prod/ (PROD-Window-Server / antooza.com)
└── .env.production.template
Manage Jenkins → Credentials → (global) → Add Credentials → Kind: Secret file:
| 환경 | credentialsId | 사용 파일 | Jenkinsfile |
|---|---|---|---|
| dev | DEV-ANTOOZA-FRONTEND-ENV |
dev/.env.production.template 채워서 |
Frontend/Jenkinsfile |
| prod | PROD-ANTOOZA-FRONTEND-ENV |
prod/.env.production.template 채워서 |
Frontend/Jenkinsfile.prod |
withCredentials([file(credentialsId: '...', variable: 'CFG')])copy /Y "%CFG%" .env.productionnpm run build — NEXT_PUBLIC_* 는 빌드 시 클라이언트 번들에 inline.env.production 을 배포 경로에도 복사 — 서버 사이드 (API_URL, SIGNALR_CHAT_URL 등) 가 런타임에 로드됨
F:\IIS\ANTOOZA\Front\C:\workspace\IIS\Front\dev 서버를 운영 도메인으로 사용 —
dev-접두사 제거(2026-07-11). dev/prod 값 동일.
| 키 | 값 |
|---|---|
NEXT_PUBLIC_SITE_URL |
https://antooza.com |
NEXT_PUBLIC_API_URL / API_URL |
https://api.antooza.com |
NEXT_PUBLIC_RESOURCE_URL |
https://resource.antooza.com |
NEXT_PUBLIC_EMBED_DOMAIN |
antooza.com |
SIGNALR_CHAT_URL / SIGNALR_APP_URL |
https://api.antooza.com/hubs/{chat,app} |
.env.production / .env.development 는 .gitignore 의 .env* 룰로 무시 (커밋 금지)