File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change 1313// Bun has built-in support for web APIs, but we need to ensure they're
1414// available on globalThis for Next.js server modules
1515if ( typeof globalThis . Request === 'undefined' ) {
16- // @ts -expect-error - Bun provides these but TypeScript may not know
1716 globalThis . Request = Request
1817}
1918
2019if ( typeof globalThis . Response === 'undefined' ) {
21- // @ts -expect-error - Bun provides these but TypeScript may not know
2220 globalThis . Response = Response
2321}
2422
2523if ( typeof globalThis . Headers === 'undefined' ) {
26- // @ts -expect-error - Bun provides these but TypeScript may not know
2724 globalThis . Headers = Headers
2825}
2926
3027if ( typeof globalThis . fetch === 'undefined' ) {
31- // @ts -expect-error - Bun provides these but TypeScript may not know
3228 globalThis . fetch = fetch
3329}
You can’t perform that action at this time.
0 commit comments