mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
12 lines
376 B
JavaScript
12 lines
376 B
JavaScript
export async 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 on nodejs')
|
|
const { register } = await import('./instrumentation.node')
|
|
await register()
|
|
} else {
|
|
await require('this should fail')
|
|
}
|
|
}
|