-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
44 lines (42 loc) · 997 Bytes
/
Copy pathnext.config.ts
File metadata and controls
44 lines (42 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import type { NextConfig } from "next";
// Force rebuild for UI cleanup deployment - v0.1.2 - Aug 4 2025 - AGGRESSIVE CACHE BUST
const nextConfig: NextConfig = {
async headers() {
return [
{
// Apply cache-busting headers to all pages
source: '/(.*)',
headers: [
{
key: 'Cache-Control',
value: 'no-cache, no-store, must-revalidate, max-age=0',
},
{
key: 'Pragma',
value: 'no-cache',
},
{
key: 'Expires',
value: '0',
},
],
},
{
// Specific headers for API routes
source: '/api/(.*)',
headers: [
{
key: 'Cache-Control',
value: 'no-cache, no-store, must-revalidate, max-age=0',
},
{
key: 'Pragma',
value: 'no-cache',
},
],
},
]
},
};
export default nextConfig;
// FORCE REBUILD