Skip to content

Commit

Permalink
fix: make dev routes accessible in test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdancho committed Dec 24, 2024
1 parent fae9734 commit ff44a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const routeTree = rootRoute.addChildren([
leaderboardRoute,
contestsRoute,
settingsRoute,
...(import.meta.env.MODE === 'development' ? [devRoute] : []),
...(import.meta.env.MODE === 'development' || import.meta.env.MODE === 'test' ? [devRoute] : []),
]),
notFoundRoute,
landingRoute,
Expand Down

0 comments on commit ff44a95

Please sign in to comment.