File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export function constructWebpackConfigFunction(
9696 appDirPath = path . join ( projectDir , 'src' , 'app' ) ;
9797 }
9898
99- const apiRoutesPath = path . join ( pagesDirPath , 'api' ) ;
99+ const apiRoutesPath = path . join ( pagesDirPath , 'api' , '/' ) ;
100100
101101 const middlewareJsPath = path . join ( pagesDirPath , '..' , 'middleware.js' ) ;
102102 const middlewareTsPath = path . join ( pagesDirPath , '..' , 'middleware.ts' ) ;
Original file line number Diff line number Diff line change @@ -118,6 +118,11 @@ describe('webpack loaders', () => {
118118 resourcePath : '/Users/Maisey/projects/squirrelChasingSimulator/src/pages/[...testPage].js' ,
119119 expectedWrappingTargetKind : 'page' ,
120120 } ,
121+ // Regression test for https://github.com/getsentry/sentry-javascript/issues/7122
122+ {
123+ resourcePath : '/Users/Maisey/projects/squirrelChasingSimulator/src/pages/apidoc/[version].tsx' ,
124+ expectedWrappingTargetKind : 'page' ,
125+ } ,
121126 {
122127 resourcePath : '/Users/Maisey/projects/squirrelChasingSimulator/src/middleware.js' ,
123128 expectedWrappingTargetKind : 'middleware' ,
You can’t perform that action at this time.
0 commit comments