10 lines
279 B
JavaScript
10 lines
279 B
JavaScript
|
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 on nodejs')
|
||
|
} else {
|
||
|
require('this should fail')
|
||
|
}
|
||
|
}
|