mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
12 lines
370 B
JavaScript
12 lines
370 B
JavaScript
export async function register() {
|
|
if (process.env.NEXT_RUNTIME === 'edge') {
|
|
console.log('instrumentation hook on the edge')
|
|
const { register } = await import('./instrumentation.edge')
|
|
await register()
|
|
} else if (process.env.NEXT_RUNTIME === 'nodejs') {
|
|
console.log('instrumentation hook on nodejs')
|
|
} else {
|
|
require('this should fail')
|
|
}
|
|
}
|