Skip to content

Commit

Permalink
next.config.mjs 拡張子をmjsにする
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Nov 2, 2024
1 parent 06b1df6 commit a3f5391
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions next.config.js → next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ const nextConfig = {
},
};

const withPWA = require("@ducanh2912/next-pwa").default({
import withPWA from "@ducanh2912/next-pwa";

const withPWAConfig = withPWA({
dest: "public",
});

module.exports = withPWA(nextConfig);
export default withPWAConfig(nextConfig);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "trident-overdrive",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "NODE_OPTIONS=--experimental-wasm-modules next dev",
"build": "NODE_OPTIONS=--experimental-wasm-modules next build",
Expand Down

0 comments on commit a3f5391

Please sign in to comment.