Files
titipin/next.config.ts

23 lines
493 B
TypeScript

import type { NextConfig } from "next";
import withPWAInit from "@ducanh2912/next-pwa";
const withPWA = withPWAInit({
dest: "public",
disable: process.env.NODE_ENV === "development",
register: true,
cacheOnFrontEndNav: true,
aggressiveFrontEndNavCaching: true,
reloadOnOnline: true,
workboxOptions: {
skipWaiting: true,
disableDevLogs: true,
},
});
const nextConfig: NextConfig = {
/* config options here */
turbopack: {},
};
export default withPWA(nextConfig);