init next-pwa
This commit is contained in:
@@ -1,7 +1,19 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
};
|
||||
const withPWA = require("next-pwa")({
|
||||
dest: "public",
|
||||
register: true,
|
||||
skipWaiting: true,
|
||||
disable: process.env.NODE_ENV === "development",
|
||||
});
|
||||
|
||||
// const nextConfig: NextConfig = {
|
||||
// /* config options here */
|
||||
// };
|
||||
|
||||
const nextConfig: NextConfig = withPWA({
|
||||
/* config options here */
|
||||
reactStrictMode: true,
|
||||
});
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user