diff --git a/.env.development b/.env.development index 7033ee9..054ba65 100644 --- a/.env.development +++ b/.env.development @@ -14,11 +14,9 @@ SESSION_PASSWORD="This application is for mobile field research" NEXT_PUBLIC_API_URL=https://dev.hanasysfield.jp #qsp 로그인 api -# NEXT_PUBLIC_QSP_API_URL=http://121.168.9.37:8080 +NEXT_PUBLIC_QSP_API_URL=http://121.168.9.37:8080 # NEXT_PUBLIC_QSP_API_URL=http://localhost:8110 # NEXT_PUBLIC_QSP_API_URL=http://dev.hanasysfield.jp -# 도메인 설정 전 테스트용 임시 변수 (qsp ip) -NEXT_PUBLIC_QSP_API_URL=http://121.168.9.37:8080 # NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com #1:1문의 api @@ -34,6 +32,7 @@ DB_PASSWORD=aAjmFW12iHKW84l1 DB_DATABASE=qpartners DB_PORT=3306 +#qsp mail server SMTP_HOST=autodiscover.qcells.com SMTP_PORT=25 SMTP_SECURE=false diff --git a/.env.localhost b/.env.localhost index 1fda3d0..128d723 100644 --- a/.env.localhost +++ b/.env.localhost @@ -27,6 +27,7 @@ DB_PASSWORD=aAjmFW12iHKW84l1 DB_DATABASE=qpartners DB_PORT=3306 +#qsp mail server SMTP_HOST=autodiscover.qcells.com SMTP_PORT=25 SMTP_SECURE=false diff --git a/.env.production b/.env.production index 8e708ab..a3e97ad 100644 --- a/.env.production +++ b/.env.production @@ -25,6 +25,7 @@ DB_PASSWORD=aAjmFW12iHKW84l1 DB_DATABASE=qpartners DB_PORT=3306 +#qsp mail server SMTP_HOST=autodiscover.qcells.com SMTP_PORT=25 SMTP_SECURE=true diff --git a/ecosystem.config.js b/ecosystem.config.js index a79cb57..303d746 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -3,8 +3,13 @@ module.exports = { { name: 'on-site-survey', script: 'node_modules/next/dist/bin/next', + args: 'start', instances: 2, exec_mode: 'cluster', + env_file: '.env.production', + env: { + NODE_ENV: 'production', + }, }, ], } diff --git a/next.config.ts b/next.config.ts index 6733d06..39503a2 100644 --- a/next.config.ts +++ b/next.config.ts @@ -12,6 +12,7 @@ const nextConfig: NextConfig = { fullUrl: true, }, }, + allowedDevOrigins: ['hanasysfield.jp', '*.hanasysfield.jp'], async rewrites() { return [ { diff --git a/src/components/ui/common/Footer.tsx b/src/components/ui/common/Footer.tsx index d1e8f0f..22cfba5 100644 --- a/src/components/ui/common/Footer.tsx +++ b/src/components/ui/common/Footer.tsx @@ -1,10 +1,15 @@ 'use client' export default function Footer() { + const runMode = process.env.NEXT_PUBLIC_RUN_MODE || 'error' + return ( <> )