Files
juanitosport/next.config.mjs

28 lines
597 B
JavaScript

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);