utils and deps
This commit is contained in:
parent
6c555355ac
commit
48ecee1974
3 changed files with 23 additions and 0 deletions
15
deps.ts
Normal file
15
deps.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import "https://deno.land/std@0.155.0/dotenv/load.ts"
|
||||
|
||||
export * as pogo from "https://deno.land/x/pogo@v0.5.2/main.ts"
|
||||
export * as validatte from "https://deno.land/x/validatte@v0.1.1/mod.ts"
|
||||
export * as supabase from "npm:@supabase/supabase-js"
|
||||
export {
|
||||
join,
|
||||
normalize,
|
||||
relative,
|
||||
} from "https://deno.land/std@0.135.0/path/mod.ts";
|
||||
|
||||
export {
|
||||
ensureFile,
|
||||
ensureFileSync,
|
||||
} from "https://deno.land/std@0.135.0/fs/mod.ts";
|
1
utils/index.ts
Normal file
1
utils/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export { default as database } from "./supabase.ts"
|
7
utils/supabase.ts
Normal file
7
utils/supabase.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { supabase as dep } from "../deps.ts";
|
||||
|
||||
export default dep.createClient(Deno.env.get("SUPABASE_URL"), Deno.env.get("SUPABASE_KEY"))
|
||||
|
||||
|
||||
|
||||
// export default base as supabase
|
Loading…
Add table
Reference in a new issue