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
-
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
For 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