Files
aisubsidy/next.config.ts
pkgsp50777_楊舒諠andClaude Opus 5.5 8511ba65a0
CI / build (push) Failing after 1m43s
containerize for vibe platform; login re-prompt, local logout
- Dockerfile (deps/test/build/runtime, standalone, UID 1000, port 3000,
  HEALTHCHECK on /api/health), .dockerignore, compose.yaml (local only)
- vibe.yaml: persistence /app/data, auth.mode oidc, callback
  /api/auth/callback/authentik, required SESSION_SECRET, APP_URL,
  BOOTSTRAP_SYSADMIN_EMPLOYEE_NOS
- .gitea/workflows/ci.yaml from the containerize template
  (TEST_COMMAND = docker build --target test .); drop GitHub workflow,
  e2e now runs locally only
- Degrade instead of exiting when secrets are missing (CI smoke test):
  random SESSION_SECRET, login disabled without OIDC settings
- Migrations run on startup; /api/health checks the DB
- prompt=login on every login; logout ends only this app's session
- Update identity design/spec, CLAUDE.md; tick identity task 5.1

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 18:25:43 +08:00

13 lines
383 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// 容器映像只需要 .next/standalone(含精簡的 node_modules 與 server.js),見 Dockerfile。
output: "standalone",
experimental: {
// 讓 requireRole 可用 forbidden() 回應 403 無權限頁(src/app/forbidden.tsx)。
authInterrupts: true,
},
};
export default nextConfig;