20 lines
611 B
JavaScript
20 lines
611 B
JavaScript
/** @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;
|