We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 538bd94 commit e1e3640Copy full SHA for e1e3640
next.config.mjs
@@ -1,7 +1,18 @@
1
+
2
+import nextPwa from 'next-pwa';
3
4
/** @type {import('next').NextConfig} */
-const nextConfig = {
5
+const withPWA = nextPwa({
6
+ dest: 'public',
7
+ register: true,
8
+ skipWaiting: true,
9
+});
10
11
+const config = {
12
reactStrictMode: true,
- output: 'export', // This is key for static export
13
+ output: "export", // Ensures it works with static export
14
+ basePath: "/Chords-Web",
15
+ assetPrefix: "/Chords-Web/",
16
images: {
17
unoptimized: true,
18
remotePatterns: [
@@ -11,6 +22,7 @@ const nextConfig = {
22
},
23
],
24
25
+ ...withPWA,
26
};
-/* module.exports = nextConfig*/
-export default nextConfig;
27
28
+export default config;
0 commit comments