Files
next.js/test/e2e/fetch-failures-have-good-stack-traces-in-edge-runtime/pages/api/unknown-domain-no-await.ts

10 lines
227 B
TypeScript

export const config = { runtime: 'edge' }
export default async function UnknownDomainEndpoint() {
fetch('http://an.unknown.domain.nextjs').catch((reason) => {
console.error(reason)
})
return new Response('okay.')
}