Skip to content

Commit c6e63e0

Browse files
committed
added output export ?
1 parent 59d7081 commit c6e63e0

File tree

4 files changed

+81
-101
lines changed

4 files changed

+81
-101
lines changed

next.config.ts

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,41 @@
1-
import type { NextConfig } from "next";
2-
import withPWA from "next-pwa";
1+
import type { NextConfig } from "next"
2+
import withPWA from "next-pwa"
3+
4+
const isDev = process.env.NODE_ENV === "development"
35

46
const nextConfig: NextConfig = {
7+
output: "export", // ✅ REQUIRED for static export
8+
59
async headers() {
610
return [
711
{
812
source: "/(.*)",
913
headers: [
10-
{ key: "X-Frame-Options", value: "DENY" },
11-
{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
14+
{
15+
key: "X-Frame-Options",
16+
value: "SAMEORIGIN",
17+
},
18+
{
19+
key: "Referrer-Policy",
20+
value: "strict-origin-when-cross-origin",
21+
},
1222
],
1323
},
1424
{
1525
source: "/api/:path*",
1626
headers: [
17-
{ key: "Cache-Control", value: "no-store" },
27+
{
28+
key: "Cache-Control",
29+
value: "no-store",
30+
},
1831
],
1932
},
20-
];
33+
]
2134
},
22-
};
35+
}
2336

2437
export default withPWA({
2538
dest: "public",
2639
register: true,
27-
})(nextConfig);
40+
disable: isDev,
41+
})(nextConfig)

public/sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
@media (prefers-color-scheme: dark) {
1616
:root {
17-
--background: #0a0a0a;
17+
--background: #0b0c14;
1818
--foreground: #ededed;
1919
}
2020
}

0 commit comments

Comments
 (0)