Files
Pennyzo-Frontend/package.json
ectasy663 ebb7fcaac8 Fix API endpoint configuration with environment-aware URLs
- Add environment-based API URL configuration (dev: localhost:8000, prod: api.pennyzo.com)
- Update PennyzoApiService to use centralized config with timeout settings
- Fix API status checker scripts to load .env variables using dotenv
- Add environment management scripts (set-env.ps1) with npm shortcuts
- Create comprehensive configuration testing and validation tools
- Add TypeScript definitions for Vite environment variables
- Update all documentation with new environment configuration instructions
- Install dotenv package for Node.js environment variable loading
- All APIs now correctly use environment-appropriate URLs automatically
2025-09-25 14:40:20 +05:30

39 lines
1.3 KiB
JSON

{
"name": "pennyzo-web",
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^1.12.2",
"chalk": "^4.1.2",
"dotenv": "^17.2.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^4.9.0"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.0",
"@types/node": "^24.5.0",
"@types/react": "^18.3.24",
"@types/react-dom": "^18.3.7",
"@vitejs/plugin-react": "^5.0.2",
"autoprefixer": "^10.4.0",
"postcss": "^8.4.0",
"tailwindcss": "^3.2.0",
"vite": "^7.1.5"
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"api:check": "node scripts/api-status-checker.js",
"api:check:extended": "node scripts/api-status-checker-extended.js",
"api:check:verbose": "node scripts/api-status-checker-extended.js --verbose",
"api:check:real": "node scripts/api-status-checker-extended.js --use-real-credentials",
"api:test-config": "node scripts/test-config.js",
"env:dev": "powershell -ExecutionPolicy Bypass -File scripts/set-env.ps1 dev",
"env:prod": "powershell -ExecutionPolicy Bypass -File scripts/set-env.ps1 prod",
"env:show": "powershell -ExecutionPolicy Bypass -File scripts/set-env.ps1 -Show"
}
}