File size: 370 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 12 | 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')
}
}
|