diff --git a/next.config.ts b/next.config.ts index a58c212..3fac736 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,5 +1,4 @@ import type { NextConfig } from "next"; -import withPWA from "next-pwa"; const nextConfig: NextConfig = { output: "standalone", @@ -20,6 +19,11 @@ const nextConfig: NextConfig = { { source: "/:path*", headers: [ + { + key: "Cache-Control", + value: + "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0", + }, { key: "X-DNS-Prefetch-Control", value: "on", @@ -49,12 +53,4 @@ const nextConfig: NextConfig = { ], }; -const withPWANextConfig = withPWA({ - dest: "public", - register: true, - skipWaiting: true, - disable: process.env.NODE_ENV === "development", - maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, // 5 MB -})(nextConfig); - -export default withPWANextConfig; +export default nextConfig;