next.js/test/e2e/instrumentation-hook-src/src/instrumentation.js
instrumentation.js10 lines269 B
export function register() {
  if (process.env.NEXT_RUNTIME === 'edge') {
    console.log('instrumentation hook on the edge')
  } else if (process.env.NEXT_RUNTIME === 'nodejs') {
    console.log('instrumentation hook')
  } else {
    require('this should fail')
  }
}
Quest for Codev2.0.0
/
SIGN IN