next.js/test/e2e/rsc-layers-transform/instrumentation.js
instrumentation.js11 lines321 B
import React from 'react'
import { textValue } from './lib/shared-module'

export async function register() {
  if (Object(React).useState) {
    throw new Error('instrumentation is not working correctly in server layer')
  }
  console.log('instrumentation:register')
  console.log('instrumentation:text:' + textValue)
}
Quest for Codev2.0.0
/
SIGN IN