mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
```
● deterministic build - changing deployment id › build output API - cacheComponents adapter › should produce identical build outputs even when changing deployment id
File content mismatch for .next/prerender-manifest.json in .vercel/output/functions/[variants].func/.vc-config.json
- Expected
+ Received
@@ -80,5 +80,5 @@
"/abc": {
"initialHeaders": {
- "link": "</_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2>; rel=preload; as=\"font\"; crossorigin=\"\"; type=\"font/woff2\", </_next/static/chunks/55fd2813a6ce3e20.css?dpl=foo-dpl-id>; rel=preload; as=\"style\"",
+ "link": "</_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2>; rel=preload; as=\"font\"; crossorigin=\"\"; type=\"font/woff2\", </_next/static/chunks/55fd2813a6ce3e20.css?dpl=bar-dpl-id>; rel=preload; as=\"style\"",
"x-nextjs-stale-time": "300",
"x-nextjs-prerender": "1",
```
12 lines
308 B
TypeScript
12 lines
308 B
TypeScript
import { NextRequest, NextResponse } from 'next/server'
|
|
|
|
const url = new URL('./public/vercel.png', import.meta.url).toString()
|
|
|
|
export async function middleware(req: NextRequest) {
|
|
if (req.nextUrl.toString().endsWith('/middleware')) {
|
|
return Response.json({ url })
|
|
}
|
|
|
|
return NextResponse.next()
|
|
}
|