Läs .env i compose och spara data i ./data

- Dev- och prod-compose läser nu hela .env (env_file), AUTH_SECRET, AUTH_URL,
  APP_PORT, POSTGRES_* m.fl. är inte längre hårdkodade i dev
- Databas och uppladdningar ligger i bind-mappar under ./data (DATA_DIR i prod)
- uploads-init ger icke-root-appen skrivrätt i uppladdningsmappen
- Uppdaterad .env.example, README och tsconfig (exkluderar data)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-22 22:17:50 +02:00
1 parent ae61fbea7a
commit 0b65494cf5
5 files changed
+46 -15

No files matched your search

+25 -5
View File
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "ES2022",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": false,
"skipLibCheck": true,
"strict": true,
@@ -13,9 +17,25 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [{ "name": "next" }],
"paths": { "@/*": ["./src/*"] }
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": [
"./src/*"
]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules",
"data"
]
}