onsitesurvey/package.json
yoosangwook e846b55faa chore: Update environment configuration and enhance API integration
- Added NEXT_PUBLIC_RUN_MODE to .env files for environment differentiation.
- Introduced .env.localhost for local development settings.
- Updated .env.production with the correct API URL.
- Modified package.json scripts to utilize env-cmd for environment-specific commands.
- Created a common configuration module to manage environment-specific settings.
- Refactored useAxios to utilize the new configuration for base URL management.
- Enhanced Footer component to display current configuration values.
2025-05-22 15:00:41 +09:00

45 lines
1.2 KiB
JSON

{
"name": "on-site-survey",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "env-cmd -f .env.localhost next dev --turbopack",
"build": "next build",
"start": "next start",
"build:dev": "env-cmd -f .env.development next build",
"build:prod": "env-cmd -f .env.production next build",
"start:dev": "env-cmd -f .env.development next start",
"start:prod": "env-cmd -f .env.production next start",
"lint": "next lint"
},
"dependencies": {
"@prisma/client": "^6.7.0",
"@tanstack/react-query": "^5.71.0",
"@tanstack/react-query-devtools": "^5.71.0",
"axios": "^1.8.4",
"env-cmd": "^10.1.0",
"iron-session": "^8.0.4",
"lucide": "^0.503.0",
"mssql": "^11.0.1",
"mysql2": "^3.14.1",
"next": "15.2.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-to-pdf": "^2.0.0",
"sass": "^1.87.0",
"swiper": "^11.2.6",
"usehooks-ts": "^3.1.1",
"zustand": "^5.0.3"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/mysql": "^2.15.27",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"prisma": "^6.7.0",
"tailwindcss": "^4",
"typescript": "^5"
}
}