Files
award/package.json
Joerg a4ed1ec6d6 Add hostname configuration for production deployment
Add environment variable configuration to support deployment on custom
domains like https://awards.dj7nt.de

## Changes
- Add .env.example with configuration template
- Update API client to use VITE_API_BASE_URL with fallback to /api
- Update SvelteKit config to use VITE_APP_URL for CSRF trusted origins
- Update backend CORS to use configurable allowed origins
- Add ALLOWED_ORIGINS environment variable for production
- Add build and preview scripts to package.json
- Update README with production deployment guide and nginx example

## Environment Variables
- VITE_APP_URL: Application hostname (e.g., https://awards.dj7nt.de)
- VITE_API_BASE_URL: API base URL (empty = relative paths)
- ALLOWED_ORIGINS: Comma-separated CORS origins
- JWT_SECRET: Strong secret for production
- NODE_ENV: development/production

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 08:22:37 +01:00

35 lines
929 B
JSON

{
"name": "award",
"module": "index.js",
"type": "module",
"private": true,
"scripts": {
"dev": "bun run src/backend/index.js & cd src/frontend && bun run dev",
"dev:backend": "bun run src/backend/index.js",
"dev:frontend": "cd src/frontend && bun run dev",
"build": "cd src/frontend && bun run build",
"preview": "cd src/frontend && bun run preview",
"db:generate": "drizzle-kit generate",
"db:push": "drizzle-kit push",
"db:migrate": "drizzle-kit migrate"
},
"devDependencies": {
"@libsql/client": "^0.17.0",
"@types/bun": "latest",
"drizzle-kit": "^0.31.8"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"@elysiajs/cors": "^1.4.1",
"@elysiajs/jwt": "^1.4.0",
"@elysiajs/static": "^1.4.7",
"bcrypt": "^6.0.0",
"drizzle-orm": "^0.45.1",
"elysia": "^1.4.22",
"pino": "^10.2.0",
"pino-pretty": "^13.1.3"
}
}