-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
36 lines (34 loc) · 799 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
36 lines (34 loc) · 799 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
/*
* Design: github.com/qmzz
* Coding: Codex
*/
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
async headers() {
return [
{
source: '/((?!_next/static|_next/image|api|uploads|feed.xml).*)',
headers: [
{
key: 'Cache-Control',
value: 'no-store, max-age=0, must-revalidate',
},
{
key: 'CDN-Cache-Control',
value: 'no-store',
},
],
},
];
},
images: {
remotePatterns: [
{ protocol: 'https', hostname: 'images.unsplash.com' },
{ protocol: 'https', hostname: '*.githubusercontent.com' },
{ protocol: 'https', hostname: 'cdn.*.com' },
],
unoptimized: true,
},
};
export default nextConfig;