Skip to content

Commit a7a65ad

Browse files
committed
Add route of dev auth to pr branches
1 parent ca4cddf commit a7a65ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/app/src/app/pages/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ const RoutesComponent: React.FC = () => {
112112
<Route path="/patron" component={Patron} />
113113
<Route path="/cli/login" component={CLI} />
114114
<Route path="/auth/zeit" component={ZeitSignIn} />
115+
{(process.env.LOCAL_SERVER || 'STAGING_BRANCH' in process.env) && (
116+
<Route path="/auth/dev" component={DevAuthPage} />
117+
)}
115118
{process.env.NODE_ENV === `development` && (
116-
<>
117-
<Route path="/auth/dev" component={DevAuthPage} />
118-
<Route path="/codesadbox" component={CodeSadbox} />
119-
</>
119+
<Route path="/codesadbox" component={CodeSadbox} />
120120
)}
121121
<Route component={NotFound} />
122122
</Switch>

0 commit comments

Comments
 (0)