next.js/test/development/app-dir/app-routes-error/hello.js
hello.js16 lines413 B
const helloHandler = async () => {
  if (typeof WebSocket === 'undefined') {
    throw new Error('missing WebSocket constructor!!')
  }

  return new Response('hello, world')
}

export const GET = helloHandler
export const HEAD = helloHandler
export const OPTIONS = helloHandler
export const POST = helloHandler
export const PUT = helloHandler
export const DELETE = helloHandler
export const PATCH = helloHandler
Quest for Codev2.0.0
/
SIGN IN