Skip to content

Commit 96a6fb1

Browse files
authored
Merge branch 'trypear:main' into metadata
2 parents 35bed37 + 6c9f7dc commit 96a6fb1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/(auth)/signin/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export default async function SignIn() {
66
const supabase = createClient()
77
const { data } = await supabase.auth.getUser()
88

9+
if (process.env.NODE_ENV === 'production') { // Temporarily redirect to home page in production until we have a proper backend auth flow
10+
redirect('/')
11+
}
12+
913
if (data?.user) {
1014
redirect('/')
1115
}

app/(auth)/signup/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export default async function SignUp() {
66
const supabase = createClient()
77
const { data } = await supabase.auth.getUser()
88

9+
if (process.env.NODE_ENV === 'production') { // Temporarily redirect to home page in production until we have a proper backend auth flow
10+
redirect('/')
11+
}
12+
913
if (data?.user) {
1014
redirect('/')
1115
}

0 commit comments

Comments
 (0)