generated from BaselHack/baselhack24_repo_template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from InnigerM/feat/add-openai-plant-recognizer-…
…edge-function feat: add openai plant recognizer edge function
- Loading branch information
Showing
3 changed files
with
60 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"deno.enable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
# Supabase Edge Functions | ||
|
||
Copy the .env.example and fill in the OPENAI_KEY | ||
`cp .env.example .env` | ||
|
||
To start locally, Docker Desktop must be installed. The cloud functions can be started by running `npx supabase start` and are accessible at `http://127.0.0.1:54321/functions/v1/[function-name]` | ||
|
||
## Update env varibales in production | ||
|
||
Login to your supabase account | ||
`npx supabase login` | ||
|
||
Sync the .env file to production | ||
`npx supabase secrets set --env-file .env` | ||
|
||
Check the synced env keys | ||
`npx supabase secrets list` |