From a3f539114faca7592c3ffb57a568ec642163a0f6 Mon Sep 17 00:00:00 2001 From: yuiseki Date: Sat, 2 Nov 2024 18:58:46 +0900 Subject: [PATCH] =?UTF-8?q?next.config.mjs=20=E6=8B=A1=E5=BC=B5=E5=AD=90?= =?UTF-8?q?=E3=82=92mjs=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.js => next.config.mjs | 7 ++++--- package.json | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) rename next.config.js => next.config.mjs (84%) diff --git a/next.config.js b/next.config.mjs similarity index 84% rename from next.config.js rename to next.config.mjs index dee4480e..1dcf75c0 100644 --- a/next.config.js +++ b/next.config.mjs @@ -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); diff --git a/package.json b/package.json index 880dd607..ebb67034 100644 --- a/package.json +++ b/package.json @@ -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",