File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
packages/open-next/src/core Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 3131 "complexity" : {
3232 "noForEach" : " off" ,
3333 "noBannedTypes" : " warn" ,
34- "noExtraBooleanCast" : " warn" ,
3534 "useOptionalChain" : " warn"
3635 },
3736 "performance" : {
Original file line number Diff line number Diff line change @@ -27,17 +27,17 @@ export interface MiddlewareOutputEvent {
2727}
2828
2929// Add the locale prefix to the regex so we correctly match the rawPath
30- const optionalLocalePrefixRegex = ! ! RoutesManifest . locales . length
30+ const optionalLocalePrefixRegex = RoutesManifest . locales . length
3131 ? `^/(?:${ RoutesManifest . locales . map ( ( locale ) => `${ locale } /?` ) . join ( "|" ) } )?`
3232 : "^/" ;
3333
3434// Add the basepath prefix to the regex so we correctly match the rawPath
35- const optionalBasepathPrefixRegex = ! ! RoutesManifest . basePath
35+ const optionalBasepathPrefixRegex = RoutesManifest . basePath
3636 ? `^${ RoutesManifest . basePath } /?`
3737 : "^/" ;
3838
3939// Add the basePath prefix to the api routes
40- const apiPrefix = ! ! RoutesManifest . basePath
40+ const apiPrefix = RoutesManifest . basePath
4141 ? `${ RoutesManifest . basePath } /api`
4242 : "/api" ;
4343
You can’t perform that action at this time.
0 commit comments