Skip to content

Commit 04c20fa

Browse files
committed
fix: prevent stale HTML chunk manifests
1 parent 5d45b60 commit 04c20fa

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

next.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3+
async headers() {
4+
const noStore = [{ key: "Cache-Control", value: "no-store" }];
5+
return [
6+
{ source: "/", headers: noStore },
7+
{ source: "/player", headers: noStore },
8+
{ source: "/watch", headers: noStore },
9+
{ source: "/shorts/:id", headers: noStore },
10+
];
11+
},
312
async rewrites() {
413
return [
514
{

0 commit comments

Comments
 (0)