diff --git a/bun.lockb b/bun.lockb index c364215..0d8c959 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/next.config.js b/next.config.js index 5b57ef7..590e446 100644 --- a/next.config.js +++ b/next.config.js @@ -1,7 +1,13 @@ const { withContentlayer } = require("next-contentlayer"); -const path = require("path"); +const withPwa = require("next-pwa"); + /** @type {import('next').NextConfig} */ const nextConfig = { + ...withPwa({ + dest: "public", + register: true, + skipWaiting: true, + }), reactStrictMode: true, swcMinify: true, output: "export", diff --git a/package.json b/package.json index b51c078..4a7815c 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "lint-staged": "^14.0.1", "next": "13.5.4", "next-contentlayer": "^0.3.4", + "next-pwa": "^5.6.0", "react": "^18", "react-dom": "^18", "react-icons": "^4.11.0",