nezha_dash/next.config.mjs
2024-07-27 02:17:07 +08:00

24 lines
527 B
JavaScript

import withPWAInit from "@ducanh2912/next-pwa";
import withBundleAnalyzer from "@next/bundle-analyzer";
const bundleAnalyzer = withBundleAnalyzer({
enabled: process.env.ANALYZE === "true",
});
const withPWA = withPWAInit({
dest: "public",
cacheOnFrontEndNav: true,
aggressiveFrontEndNavCaching: true,
reloadOnOnline: true,
disable: false,
workboxOptions: {
disableDevLogs: true,
},
});
/** @type {import('next').NextConfig} */
const nextConfig = {};
export default bundleAnalyzer(withPWA(nextConfig));