Skip to content

Commit bb4d4cf

Browse files
committed
fix: default flag to true for testing
1 parent d757ead commit bb4d4cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime/src/helpers/flags.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ export const splitApiRoutes = (featureFlags: Record<string, unknown>): boolean =
1313
if (process.env.NEXT_SPLIT_API_ROUTES) {
1414
return process.env.NEXT_SPLIT_API_ROUTES === 'true'
1515
}
16-
return Boolean(featureFlags.next_split_api_routes)
16+
// default to true during testing, swap to false before merging
17+
return typeof featureFlags.next_split_api_routes === 'boolean' ? featureFlags.next_split_api_routes : true
1718
}

0 commit comments

Comments
 (0)