Files
next.js/test/e2e/url/app/opengraph-image.js
Niklas MischkulnigandGitHub a6d950a445 Turbopack: fix static asset skew protection for edge and prerenders (#90238)
- Edge Runtime was missing `globalThis.NEXT_CLIENT_ASSET_SUFFIX` at runtime
- Prerenders were always running `globalThis.NEXT_CLIENT_ASSET_SUFFIX` set

Fixups after #88828
2026-02-20 18:31:02 +01:00

10 lines
275 B
JavaScript

import imported from '../public/vercel.png'
const url = new URL('../public/vercel.png', import.meta.url).toString()
export const contentType = 'text/json'
// Image generation
export default async function Image() {
return Response.json({ imported: imported.src, url })
}