Repository navigation
Expand file tree
/
Copy pathnext.config.js
More file actions
44 lines (43 loc) · 1.45 KB
/
Copy pathnext.config.js
File metadata and controls
44 lines (43 loc) · 1.45 KB
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
outputFileTracingIncludes: {
'/api/card': ['./node_modules/@fontsource/manrope/files/manrope-latin-*-normal.woff'],
'/docs/mcp-server': ['./docs/mcp-server.md'],
},
async headers() {
return [
{
source: '/',
headers: [
{
key: 'Link',
value: '</.well-known/api-catalog>; rel="api-catalog", </openapi.json>; rel="service-desc"; type="application/openapi+json", </docs/mcp-server>; rel="service-doc"; type="text/markdown", </.well-known/mcp/server-card.json>; rel="describedby"; type="application/json", </.well-known/oauth-protected-resource>; rel="oauth-protected-resource"; type="application/json", </.well-known/agent-skills/index.json>; rel="describedby"; type="application/json", </auth.md>; rel="service-doc"; type="text/markdown"',
},
{ key: 'Vary', value: 'Accept' },
],
},
{
source: '/share/:login',
headers: [
{ key: 'Cache-Control', value: 'public, s-maxage=86400, stale-while-revalidate=604800' },
],
},
];
},
async rewrites() {
return [
{
source: '/api/badge/:login.svg',
destination: '/badge/:login.svg',
},
];
},
images: {
remotePatterns: [
{ protocol: 'https', hostname: 'avatars.githubusercontent.com' },
],
},
};
export default nextConfig;