From 28be36f04c5a329ed4f4e7a68cd42ee560a800ab Mon Sep 17 00:00:00 2001 From: Ali Waseem Date: Wed, 4 Mar 2026 10:47:35 -0700 Subject: [PATCH] chore: allow using multiple ports for next dev (#43398) ## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Trying agents with multiple git worktrees, want the ability to run multiple instances of dev ## Context For agent scripts that support git worktrees, you can set STUDIO_PORT to 0 and have the OS assign a port so they don't conflict with each other --- .gitignore | 5 ++++- apps/studio/package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a256689991..6f13c135c9 100644 --- a/.gitignore +++ b/.gitignore @@ -156,4 +156,7 @@ gcloud.json keys.json # Playwright MCP -.playwright-mcp/* \ No newline at end of file +.playwright-mcp/* + +# Application +**/.superset/** diff --git a/apps/studio/package.json b/apps/studio/package.json index f12464045b..fc98a06d61 100644 --- a/apps/studio/package.json +++ b/apps/studio/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "preinstall": "npx only-allow pnpm", - "dev": "next dev -p 8082", + "dev": "next dev -p ${STUDIO_PORT:-8082}", "build": "next build && if [ \"$SKIP_ASSET_UPLOAD\" != \"1\" ]; then ./../../scripts/upload-static-assets.sh; fi", "start": "next start -p 8082", "lint": "eslint .",