File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ export default async function SignIn() {
6
6
const supabase = createClient ( )
7
7
const { data } = await supabase . auth . getUser ( )
8
8
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
+
9
13
if ( data ?. user ) {
10
14
redirect ( '/' )
11
15
}
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ export default async function SignUp() {
6
6
const supabase = createClient ( )
7
7
const { data } = await supabase . auth . getUser ( )
8
8
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
+
9
13
if ( data ?. user ) {
10
14
redirect ( '/' )
11
15
}
You can’t perform that action at this time.
0 commit comments