Adds the full Next.js app (app/, components/, lib/, scripts/, assets/, docs/, Dockerfile, compose, configs) to version control. Security: - CIPC BizPortal customer-code logins (Login 1 + Login 3) now read CIPC_LOGIN1_CODE / CIPC_LOGIN1_PASSWORD / CIPC_LOGIN3_CODE / CIPC_LOGIN3_PASSWORD from .env.local instead of source. - BizPortal personal login in apply-bizportal route reads BIZPORTAL_ID_NO / BIZPORTAL_PASSWORD. - Added .env.example as the committed template. .gitignore excludes .env*, node_modules, .next, logs, sqlite, Playwright storage_state.json (live CIPC cookies), scratch dirs, client PDFs and debug screenshots.
15 lines
493 B
JavaScript
15 lines
493 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
poweredByHeader: false,
|
|
// Standalone output bundles only what's needed to run the app —
|
|
// shrinks the production image from ~700MB to ~150MB and avoids
|
|
// shipping node_modules into the container.
|
|
output: "standalone",
|
|
experimental: {
|
|
// Keep server actions off — we use route handlers for the PB proxy
|
|
serverActions: { allowedOrigins: ["*"] },
|
|
}
|
|
};
|
|
|
|
export default nextConfig;
|