Sign-in steps (password, sign-up, email code, two-step sign-in and its setup with recovery codes, privacy notice, news question), forgot and reset password, the account page, admin (people, deletions, church profile, linked products, settings, notice, licence, audit) and setup. Strict CSP with a nonce per page; church colours from the profile. @crosscode/ui gets its first components (shell, card, fields, buttons). Plan: roles stay in each product (asked 2026-11-18). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
821 B
TypeScript
26 lines
821 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
// Everything under /api is the backend (docs/ACCOUNTS-1.0-PLAN.md §1). On a server nginx sends it
|
|
// there; in development (and when Next is reached directly) this rewrite does.
|
|
const api = (process.env.ACCOUNTS_API_URL || "http://127.0.0.1:5200").replace(/\/+$/, "");
|
|
|
|
const nextConfig: NextConfig = {
|
|
poweredByHeader: false,
|
|
transpilePackages: ["@crosscode/ui"],
|
|
async rewrites() {
|
|
return [{ source: "/api/:path*", destination: `${api}/api/:path*` }];
|
|
},
|
|
async headers() {
|
|
return [{
|
|
source: "/:path*",
|
|
headers: [
|
|
{ key: "X-Robots-Tag", value: "noindex, nofollow" },
|
|
{ key: "Referrer-Policy", value: "same-origin" },
|
|
{ key: "X-Content-Type-Options", value: "nosniff" },
|
|
],
|
|
}];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|