File tree 2 files changed +6
-1
lines changed 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export function constructWebpackConfigFunction(
96
96
appDirPath = path . join ( projectDir , 'src' , 'app' ) ;
97
97
}
98
98
99
- const apiRoutesPath = path . join ( pagesDirPath , 'api' ) ;
99
+ const apiRoutesPath = path . join ( pagesDirPath , 'api' , '/' ) ;
100
100
101
101
const middlewareJsPath = path . join ( pagesDirPath , '..' , 'middleware.js' ) ;
102
102
const middlewareTsPath = path . join ( pagesDirPath , '..' , 'middleware.ts' ) ;
Original file line number Diff line number Diff line change @@ -118,6 +118,11 @@ describe('webpack loaders', () => {
118
118
resourcePath : '/Users/Maisey/projects/squirrelChasingSimulator/src/pages/[...testPage].js' ,
119
119
expectedWrappingTargetKind : 'page' ,
120
120
} ,
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
+ } ,
121
126
{
122
127
resourcePath : '/Users/Maisey/projects/squirrelChasingSimulator/src/middleware.js' ,
123
128
expectedWrappingTargetKind : 'middleware' ,
You can’t perform that action at this time.
0 commit comments