Skip to content

Commit a3f5391

Browse files
committed
next.config.mjs 拡張子をmjsにする
1 parent 06b1df6 commit a3f5391

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

next.config.js next.config.mjs

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ const nextConfig = {
2626
},
2727
};
2828

29-
const withPWA = require("@ducanh2912/next-pwa").default({
29+
import withPWA from "@ducanh2912/next-pwa";
30+
31+
const withPWAConfig = withPWA({
3032
dest: "public",
3133
});
32-
33-
module.exports = withPWA(nextConfig);
34+
export default withPWAConfig(nextConfig);

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "trident-overdrive",
33
"version": "0.1.0",
44
"private": true,
5+
"type": "module",
56
"scripts": {
67
"dev": "NODE_OPTIONS=--experimental-wasm-modules next dev",
78
"build": "NODE_OPTIONS=--experimental-wasm-modules next build",

0 commit comments

Comments
 (0)