myheats

Live heats, scoring and leaderboard for sport events
git clone https://git.in0rdr.ch/myheats.git
Log | Files | Refs | Pull requests | README | LICENSE

commit 0ac6d10da0850fe1acfe3f7cd7ceac23ac94da0f
parent a7d9787fce36b870ab0b1344e6d1e219da93a6e8
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Sun, 25 Aug 2024 14:53:00 +0200

feat: add VITE_APP_EMAIL_REDIRECT_TO

Diffstat:
Msrc/Auth.jsx | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Auth.jsx b/src/Auth.jsx @@ -1,6 +1,9 @@ import { useState } from 'react' import { supabase } from './supabaseClient' +const emailRedirectTo = import.meta.env.VITE_APP_EMAIL_REDIRECT_TO + || 'http://localhost:5173' + function Auth() { const [loading, setLoading] = useState(false) const [email, setEmail] = useState('') @@ -14,7 +17,7 @@ function Auth() { email: email, options: { shouldCreateUser: false, - // emailRedirectTo: 'http://localhost:5173' + emailRedirectTo: emailRedirectTo }}) if (error) throw error alert('Check your email for the login link!')