21 lines
459 B
JavaScript
21 lines
459 B
JavaScript
import withPWAInit from "@ducanh2912/next-pwa";
|
|
|
|
const withPWA = withPWAInit({
|
|
dest: "public",
|
|
disable: process.env.NODE_ENV === "development",
|
|
register: true,
|
|
skipWaiting: true,
|
|
workboxOptions: {
|
|
importScripts: ["/push-sw.js"],
|
|
},
|
|
});
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
// Enable React Strict Mode (default)
|
|
reactStrictMode: true,
|
|
turbopack: {},
|
|
};
|
|
|
|
export default withPWA(nextConfig);
|