Skip to content

Commit 9dd33bc

Browse files
authored
Merge pull request #81 from Amanmahe/main
2 parents 0edc4ec + 56a8525 commit 9dd33bc

File tree

14 files changed

+4760
-150
lines changed

14 files changed

+4760
-150
lines changed

next.config.mjs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
2+
import nextPwa from 'next-pwa';
3+
14
/** @type {import('next').NextConfig} */
2-
const nextConfig = {
5+
const withPWA = nextPwa({
6+
dest: 'public',
7+
register: true,
8+
skipWaiting: true,
9+
});
10+
11+
const config = {
312
reactStrictMode: true,
4-
output: 'export', // This is key for static export
13+
output: "export", // Ensures it works with static export
14+
basePath: "/",
15+
assetPrefix: "/Chords-Web/",
516
images: {
617
unoptimized: true,
718
remotePatterns: [
@@ -11,6 +22,7 @@ const nextConfig = {
1122
},
1223
],
1324
},
25+
...withPWA,
1426
};
15-
/* module.exports = nextConfig*/
16-
export default nextConfig;
27+
28+
export default config;

0 commit comments

Comments
 (0)