Last active
May 6, 2025 21:13
-
-
Save KyGuy2002/201c0712e1bcd5c5a3d7d588496710fc to your computer and use it in GitHub Desktop.
Using Drizzle Studio for local database access in GitHub Codespaces
This file contains hidden or 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
Drizzle Studio is a cloud hosted web ui `local.drizzle.studio`. | |
It connects to the local hosted api that is started when using `drizzle-kit studio` in your terminal. | |
By default, the ui tries to connect to localhost:4983. | |
If using github codespaces, the server will be at a link like `your-codespace-name-4983.app.github.dev`. | |
If you try to use the `--host` param for the cli it won't work. (https://github.com/drizzle-team/drizzle-kit-mirror/issues/381) | |
Instead, use the `?host` query param when accessing `local.drizzle.studio`. | |
Because the codespace url has the port in the subdomain, you need drizzle studio to access it at the default https port `443`. | |
The final url will look like: | |
`https://local.drizzle.studio/?host=your-codespace-name-4983.app.github.dev&port=443` | |
IMPORTANT: Make sure to make the port public. Go to the `PORTS` tab next to the terminal in vscode and right click on the port > change visibility > make pulic. | |
You do not need to add any cli args, just leave it at `drizzle-kit studio` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment