diff --git a/routes/login.tsx b/routes/login.tsx index e430e33..417ac21 100644 --- a/routes/login.tsx +++ b/routes/login.tsx @@ -8,8 +8,8 @@ type AuthResult = { export const handler: Handlers = { async GET(req, ctx): Promise { - const url = Deno.env.get("SUPABASE_URL_DEV") ?? ""; - const anonKey = Deno.env.get("SUPABASE_ANON_KEY_DEV") ?? ""; + const url = Deno.env.get("SUPABASE_URL_KEY") ?? ""; + const anonKey = Deno.env.get("SUPABASE_ANON_KEY") ?? ""; if (url === "" || anonKey === "") { const errorMsg = `Server config error: The SUPABASE_URL and/or SUPABASE_ANON_KEY environment variables are not set.`; @@ -22,8 +22,8 @@ export const handler: Handlers = { return ctx.render(); }, async POST(req, ctx): Promise { - const url = Deno.env.get("SUPABASE_URL_DEV") ?? ""; - const anonKey = Deno.env.get("SUPABASE_ANON_KEY_DEV") ?? ""; + const url = Deno.env.get("SUPABASE_URL_KEY") ?? ""; + const anonKey = Deno.env.get("SUPABASE_ANON_KEY") ?? ""; const supabase = createServerClient(url, anonKey, { auth: {