Skip to content

Commit

Permalink
feat: gelato test
Browse files Browse the repository at this point in the history
  • Loading branch information
sejori committed Apr 18, 2023
1 parent 379bd9f commit ffae306
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/gelato.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
let gelato_api_key = ""
if (Deno.env.get("DENO_REGION")) {
if (Deno.args[0] === "dev") {
gelato_api_key = await Deno.readTextFile(new URL("../keys/gelato.txt", import.meta.url))
} else {
const {
GELATO_API_KEY
} = Deno.env.toObject()
gelato_api_key = GELATO_API_KEY
} else {
gelato_api_key = await Deno.readTextFile(new URL("../keys/gelato.txt", import.meta.url))
}

const getCatalogs = async () => {
Expand Down

0 comments on commit ffae306

Please sign in to comment.