Inspecting edge function environment variables #27139
TheOtherBrian1
announced in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a copy of a troubleshooting article on Supabase's docs site. It may be missing some details from the original. View the original article.
Sometimes it can be informative to log values from your Edge Functions. This walks you through the process of logging environment variables for inspection, but it can be generalized for all logging.
Steps:
enable docker
Create a local Supabase project
supabasefolderFor security reasons, it is not advised to log secrets, but you can log a truncated version just for the reassurance that they're being updated:
After calling your function, you can check your edge function logs to observe the logged values. It should look something like this:
Beta Was this translation helpful? Give feedback.
All reactions