move to webapp

This commit is contained in:
m5r
2021-07-18 23:32:45 +08:00
parent 61c23ec9a7
commit a989125e6e
167 changed files with 26607 additions and 24066 deletions

11
src/supabase/server.ts Normal file
View File

@ -0,0 +1,11 @@
import getConfig from "next/config";
import { createClient } from "@supabase/supabase-js";
const { publicRuntimeConfig, serverRuntimeConfig } = getConfig();
const { supabase: { url } } = publicRuntimeConfig;
const { supabase: { roleKey } } = serverRuntimeConfig;
const supabase = createClient(url, roleKey);
export default supabase;