Preview branch project Id and key?

When a pull request is created on github and causes a preview branch on Supabase, how do we programatically get the project ID and public key to configure the .env for the branch?
Was this page helpful?