import type { NextConfig } from "next"; import withPWAInit from "@ducanh2912/next-pwa"; const withPWA = withPWAInit({ dest: "public", cacheOnFrontEndNav: true, aggressiveFrontEndNavCaching: true, reloadOnOnline: true, disable: process.env.NODE_ENV === "development", workboxOptions: { disableDevLogs: true, runtimeCaching: [ { urlPattern: /^https?.*/, handler: "NetworkFirst", options: { cacheName: "grow-api-cache", expiration: { maxEntries: 200, maxAgeSeconds: 24 * 60 * 60 }, networkTimeoutSeconds: 10, }, }, ], }, }); const nextConfig: NextConfig = { output: "standalone", turbopack: {}, experimental: { webpackBuildWorker: false, }, }; export default withPWA(nextConfig);