fix: ESM import for next-pwa, changelog updates (F-5)
- Convert require() to ESM import in next.config.ts - Remove skipWaiting (defaults to true in Workbox)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import type { NextConfig } from 'next'
|
||||
const withPWA = require("@ducanh2912/next-pwa").default({
|
||||
import withPWAInit from "@ducanh2912/next-pwa"
|
||||
|
||||
const withPWA = withPWAInit({
|
||||
dest: "public",
|
||||
register: true,
|
||||
skipWaiting: true,
|
||||
disable: process.env.NODE_ENV === "development",
|
||||
});
|
||||
})
|
||||
|
||||
// * CSP directives — restrict resource loading to known origins
|
||||
const cspDirectives = [
|
||||
|
||||
Reference in New Issue
Block a user