ci / olares chart · sanity (pull_request) Successful in 3s
ci / app · types + tests + build (pull_request) Successful in 3m7s
markt / eintrag (pull_request) Successful in 29s
release / which version (pull_request) Successful in 3s
release / olares chart · sanity (pull_request) Successful in 4s
release / app (pull_request) Successful in 59s
release / tag and release (pull_request) Skipped
Setup with a code from /app/data, passkeys with required user verification, sessions as hashed cookies bound to the passkey they started with, single-use invitation and device links, removing a passkey or a member, and a recovery code for the owner. Cross-household lookups before sign-in run in withAuth() (app.auth), allowed only on the sign-in tables; a test pins that list. State-changing routes check the session and the Origin header. Security check with the login-sicherheit skill before the first invitation: docs/sicherheit/login-2026-11-06.md (no open findings above low). Entrance goes public now that the own sign-in exists; markt.yml creates the Lunch entry in aimighty-market and proves it with wrangler. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HUc2nv7rJVU2gp3Bgtha3q
42 lines
1.5 KiB
TypeScript
42 lines
1.5 KiB
TypeScript
import type { NextConfig } from "next";
|
|
import createNextIntlPlugin from "next-intl/plugin";
|
|
import withSerwistInit from "@serwist/next";
|
|
|
|
// Serwist baut den Service Worker aus app/sw.ts nach public/sw.js.
|
|
// In der Entwicklung aus: Ein Service Worker, der alte Stände ausliefert,
|
|
// macht jedes Neuladen zur Rätselfrage.
|
|
const withSerwist = withSerwistInit({
|
|
swSrc: "app/sw.ts",
|
|
swDest: "public/sw.js",
|
|
disable: process.env.NODE_ENV !== "production",
|
|
});
|
|
|
|
const withNextIntl = createNextIntlPlugin("./i18n/request.ts");
|
|
|
|
const nextConfig: NextConfig = {
|
|
reactStrictMode: true,
|
|
// Standalone: Das Abbild trägt nur, was zur Laufzeit gebraucht wird.
|
|
output: "standalone",
|
|
// pg lädt optionale Module dynamisch; nicht bündeln, sondern als Paket
|
|
// mitnehmen (standalone verfolgt es dann selbst).
|
|
serverExternalPackages: ["pg"],
|
|
poweredByHeader: false,
|
|
// Kein X-Frame-Options/frame-ancestors: Olares zeigt Apps im eigenen
|
|
// Fenster der Oberfläche. Passkeys sind in fremden Rahmen ohnehin gesperrt.
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: "/:path*",
|
|
headers: [
|
|
{ key: "X-Content-Type-Options", value: "nosniff" },
|
|
{ key: "Referrer-Policy", value: "same-origin" },
|
|
{ key: "Permissions-Policy", value: "camera=(self), microphone=(), geolocation=(), payment=()" },
|
|
],
|
|
},
|
|
{ source: "/sw.js", headers: [{ key: "Cache-Control", value: "no-cache" }] },
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withSerwist(withNextIntl(nextConfig));
|