File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed
packages/nextjs/src/common Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -192,22 +192,24 @@ async function resolveStackFrames(
192192 const controller = new AbortController ( ) ;
193193 const timer = setTimeout ( ( ) => controller . abort ( ) , 3000 ) ;
194194
195- const res = await fetch (
196- `${
197- // eslint-disable-next-line no-restricted-globals
198- typeof window === 'undefined' ? 'http://localhost:3000' : '' // TODO: handle the case where users define a different port
199- } ${ basePath } /__nextjs_original-stack-frames`,
200- {
201- method : 'POST' ,
202- headers : {
203- 'Content-Type' : 'application/json' ,
195+ const res = await suppressTracing ( ( ) =>
196+ fetch (
197+ `${
198+ // eslint-disable-next-line no-restricted-globals
199+ typeof window === 'undefined' ? 'http://localhost:3000' : '' // TODO: handle the case where users define a different port
200+ } ${ basePath } /__nextjs_original-stack-frames`,
201+ {
202+ method : 'POST' ,
203+ headers : {
204+ 'Content-Type' : 'application/json' ,
205+ } ,
206+ signal : controller . signal ,
207+ body : JSON . stringify ( postBody ) ,
204208 } ,
205- signal : controller . signal ,
206- body : JSON . stringify ( postBody ) ,
207- } ,
208- ) . finally ( ( ) => {
209- clearTimeout ( timer ) ;
210- } ) ;
209+ ) . finally ( ( ) => {
210+ clearTimeout ( timer ) ;
211+ } ) ,
212+ ) ;
211213
212214 if ( ! res . ok || res . status === 204 ) {
213215 return null ;
You can’t perform that action at this time.
0 commit comments