From 15114d8da09ae0b6c28e1df2092d1557c725f52d Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Thu, 12 Jun 2025 14:56:57 +0900 Subject: [PATCH] chore: update environment configuration for development, localhost, and production - Added DATABASE_URL, DATABASE_CONNECTION_LIMIT, DATABASE_POOL_MIN, DATABASE_POOL_MAX, and SESSION_PASSWORD to .env, .env.development, .env.localhost, and .env.production files. - Ensured consistent database connection settings across different environments for improved application performance. --- .env | 16 ---------------- .env.development | 8 ++++++++ .env.localhost | 8 ++++++++ .env.production | 8 ++++++++ 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/.env b/.env index 849a432..e69de29 100644 --- a/.env +++ b/.env @@ -1,16 +0,0 @@ -# Environment variables declared in this file are automatically made available to Prisma. -# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema - -# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. -# See the documentation for all the connection string options: https://pris.ly/d/connection-strings - -# DATABASE_URL="sqlserver://3team.devgrr.kr:1433;database=onsitesurvey;user=sa;password=1q2w3e4r!;encrypt=true;trustServerCertificate=true;" -DATABASE_URL="sqlserver://3team.devgrr.kr:1433;database=onsitesurvey;user=sa;password=1q2w3e4r!;encrypt=true;trustServerCertificate=true;connectionTimeout=30000;applicationName=OnSiteSurvey" -# DATABASE_URL="sqlserver://172.16.56.60:14331;database=hanwha_qcells_jp;user=qcells_jp;password=zbtpf2022!;encrypt=true;trustServerCertificate=true;applicationName=OnSiteSurvey" -# DATABASE_URL="mysql://root:root@localhost:3306/onsitesurvey" -DATABASE_CONNECTION_LIMIT=10 -DATABASE_POOL_MIN=2 -DATABASE_POOL_MAX=10 - -# SESSION_PASSWORD="QWERASDFZXCV1234567890REWQFDSAVCXZ" -SESSION_PASSWORD="This application is for mobile field research" \ No newline at end of file diff --git a/.env.development b/.env.development index 86dd24a..8f3845a 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,12 @@ NEXT_PUBLIC_RUN_MODE=development + +DATABASE_URL="sqlserver://172.16.56.60:14331;database=hanwha_qcells_jp;user=qcells_jp;password=zbtpf2022!;encrypt=true;trustServerCertificate=true;applicationName=OnSiteSurvey" +DATABASE_CONNECTION_LIMIT=10 +DATABASE_POOL_MIN=2 +DATABASE_POOL_MAX=10 + +SESSION_PASSWORD="This application is for mobile field research" + # 모바일 디바이스로 로컬 서버 확인하려면 자신 IP 주소로 변경 # 다시 로컬에서 개발할때는 localhost로 변경 #route handler diff --git a/.env.localhost b/.env.localhost index 089e14e..e7e54cd 100644 --- a/.env.localhost +++ b/.env.localhost @@ -1,4 +1,12 @@ NEXT_PUBLIC_RUN_MODE=local + +DATABASE_URL="sqlserver://172.16.56.60:14331;database=hanwha_qcells_jp;user=qcells_jp;password=zbtpf2022!;encrypt=true;trustServerCertificate=true;applicationName=OnSiteSurvey" +DATABASE_CONNECTION_LIMIT=10 +DATABASE_POOL_MIN=2 +DATABASE_POOL_MAX=10 + +SESSION_PASSWORD="This application is for mobile field research" + # 모바일 디바이스로 로컬 서버 확인하려면 자신 IP 주소로 변경 # 다시 로컬에서 개발할때는 localhost로 변경 #route handler diff --git a/.env.production b/.env.production index 1835dc5..08d4b0a 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,12 @@ NEXT_PUBLIC_RUN_MODE=production + +DATABASE_URL="sqlserver://172.16.56.60:14331;database=hanwha_qcells_jp;user=qcells_jp;password=zbtpf2022!;encrypt=true;trustServerCertificate=true;applicationName=OnSiteSurvey" +DATABASE_CONNECTION_LIMIT=10 +DATABASE_POOL_MIN=2 +DATABASE_POOL_MAX=10 + +SESSION_PASSWORD="This application is for mobile field research" + #route handler NEXT_PUBLIC_API_URL=http://localhost:3000