We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06b1df6 commit a3f5391Copy full SHA for a3f5391
next.config.js next.config.mjs
@@ -26,8 +26,9 @@ const nextConfig = {
26
},
27
};
28
29
-const withPWA = require("@ducanh2912/next-pwa").default({
+import withPWA from "@ducanh2912/next-pwa";
30
+
31
+const withPWAConfig = withPWA({
32
dest: "public",
33
});
-
-module.exports = withPWA(nextConfig);
34
+export default withPWAConfig(nextConfig);
package.json
@@ -2,6 +2,7 @@
2
"name": "trident-overdrive",
3
"version": "0.1.0",
4
"private": true,
5
+ "type": "module",
6
"scripts": {
7
"dev": "NODE_OPTIONS=--experimental-wasm-modules next dev",
8
"build": "NODE_OPTIONS=--experimental-wasm-modules next build",
0 commit comments