Skip to content

Commit a505b0e

Browse files
committed
info on using vercel cli
1 parent ad5f8b7 commit a505b0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/database/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ It does mean you will have a fresh database with minimal data.
5959
6060
You may want to test your local code against the supabase branch database.
6161
If you are working on frontend code, you may use the environment variable `NEXT_API_ROOT` (forthcoming) to get the api of the active vercel branch instance (as given in the [vercel interface](https://vercel.com/discourse-graphs/discourse-graph/deployments).)
62+
63+
If you have logged in with the vercel cli tool, you can also get the URL with `vercel list -m githubCommitRef=<branch name>`
64+
6265
If you are working on the website api code, you need to create a branch-specific `.env` based on the `.env.productiondb`, with values populated from the supabase UI for the branch.
6366
6467
IMPORTANT: Avoid using any supabase command while this environment is active. It is also safer to stop your local supabase altogether.

0 commit comments

Comments
 (0)