-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnext.config.mjs
More file actions
30 lines (28 loc) · 1.54 KB
/
Copy pathnext.config.mjs
File metadata and controls
30 lines (28 loc) · 1.54 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
import { JEV_SYSTEM_SLUG_REDIRECTS } from './lib/jev-system-slug.mjs';
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// This app lives inside a monorepo with sibling lockfiles; pin the tracing root.
outputFileTracingRoot: import.meta.dirname,
// Bundle the committed dataset.json as a runtime fallback when no DB is set.
outputFileTracingIncludes: {
"/**": ["./data/dataset.json"],
},
// CR-56.3: WebMCP tools may register only in this site's own top-level pages and same-origin frames
// (a cross-origin frame never gets them; unknown to browsers without WebMCP).
// CR-170: renamed JevBench system pages keep their old URL as a permanent redirect.
// The /image-jev-bench/v0.1.4 archive URL existed only during the 29-30 Sep v0.2 page (rolled back).
async redirects() {
return [...JEV_SYSTEM_SLUG_REDIRECTS, { source: "/image-jev-bench/v0.1.4", destination: "/image-jev-bench", permanent: false }];
},
async headers() {
return [
{ source: "/:path*", headers: [{ key: "Permissions-Policy", value: "tools=(self)" }] },
// Unlisted work-in-progress previews (e.g. the unpublished JevBench v1.5 page): never indexed.
{ source: "/wip-oiifi41ouv1f/:path*", headers: [{ key: "X-Robots-Tag", value: "noindex, nofollow, noarchive" }] },
// Unlisted AudioJevBench WIP preview: never indexed, even if a link leaks.
{ source: "/wip-33gyqg9xwm5y/:path*", headers: [{ key: "X-Robots-Tag", value: "noindex, nofollow, noarchive" }] },
];
},
};
export default nextConfig;