/** @type {import('next').NextConfig} */ const nextConfig = { output: process.env.DOCKER_BUILD === "1" ? "standalone" : undefined, // API calls go through src/app/api/[...path] runtime proxy (not build-time rewrites) headers: async () => [ { source: "/sw.js", headers: [ { key: "Cache-Control", value: "public, max-age=0, must-revalidate" }, { key: "Service-Worker-Allowed", value: "/" }, ], }, { source: "/manifest.webmanifest", headers: [{ key: "Content-Type", value: "application/manifest+json" }], }, ], }; module.exports = nextConfig;