Files
Jiachi LiuandGitHub 5e2ad29309 Migrate rsc tests to app dir tests (#38158)
### Tests 
* keep node & edge for streaming
* separate rsc tests from streaming tests
* move rsc tests to app-dir, disable the broken ones for now
2022-06-29 23:12:57 +00:00

12 lines
207 B
JavaScript

let did = false
export default function MyError() {
if (!did && typeof window === 'undefined') {
did = true
throw new Error('oops')
}
}
export const config = {
runtime: 'experimental-edge',
}