mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### Tests * keep node & edge for streaming * separate rsc tests from streaming tests * move rsc tests to app-dir, disable the broken ones for now
12 lines
207 B
JavaScript
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',
|
|
}
|