Skip to content

Commit

Permalink
Merge pull request #73 from lmnr-ai/dev
Browse files Browse the repository at this point in the history
fix redirect to sign-in on local devo (#72)
  • Loading branch information
dinmukhamedm authored Oct 22, 2024
2 parents 836583a + 8d2a70b commit 4e9219c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export default async function LandingPage() {
const session = await getServerSession(authOptions);

if (!isFeatureEnabled(Feature.WORKSPACE)) {
redirect('/projects');
if (!session) {
redirect('/sign-in');
} else {
redirect('/projects');
}
}

return (
Expand Down

0 comments on commit 4e9219c

Please sign in to comment.