mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
- Edge Runtime was missing `globalThis.NEXT_CLIENT_ASSET_SUFFIX` at runtime - Prerenders were always running `globalThis.NEXT_CLIENT_ASSET_SUFFIX` set Fixups after #88828
14 lines
307 B
JavaScript
14 lines
307 B
JavaScript
import imported from '../../../public/vercel.png'
|
|
const url = new URL('../../../public/vercel.png', import.meta.url)
|
|
|
|
export default (req, res) => {
|
|
return new Response(
|
|
JSON.stringify({
|
|
imported: imported.src,
|
|
url: url.toString(),
|
|
})
|
|
)
|
|
}
|
|
|
|
export const runtime = 'experimental-edge'
|