Files
ApiCore/ApiCore-Frontend/next.config.ts
T
Nick Szaunig 0a52b29c57
Backend Image / build-and-push (push) Successful in 2m44s
Frontend Image / build-and-push (push) Successful in 2m47s
fix: Bug fixed für alle Seiten und das Profil und label
2026-08-27 15:15:55 +02:00

21 lines
671 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
async headers() {
return [
{
// Browsers are supposed to bypass HTTP cache when checking for a new
// service worker, but that's not reliably honored everywhere - an
// explicit no-cache header here is the only way to guarantee a sw.js
// fix actually reaches already-open tabs promptly after a deploy,
// instead of possibly sitting cached for hours.
source: "/sw.js",
headers: [{ key: "Cache-Control", value: "no-cache, no-store, must-revalidate" }],
},
];
},
};
export default nextConfig;