Initial commit: JuanitoSport - Muay Thai & Yog4Fight PWA

This commit is contained in:
Wycz
2026-09-08 08:25:33 +02:00
commit a69ca86330
70 changed files with 4301 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import withPWA from "next-pwa";
const nextConfig = {
reactStrictMode: true,
images: {
unoptimized: true,
domains: ["juanito.secourit.fr", "localhost"],
},
async headers() {
return [
{
source: "/uploads/:path*",
headers: [
{ key: "Cache-Control", value: "public, max-age=31536000, immutable" },
{ key: "Access-Control-Allow-Origin", value: "*" },
],
},
];
},
};
export default withPWA({
dest: "public/sw",
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development",
})(nextConfig);