From 1ebac909a84559bf9494d65c4d4279c483dec84d Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Wed, 22 Apr 2026 11:55:53 +0200 Subject: [PATCH] test(supabase-nextjs): Stop existing stack before `supabase start` CI failed on 2026-04-10 with `failed to bind host port 54322` when `supabase start` hit a port already held by a leftover container (likely from a prior run on the same runner). The script now runs `supabase stop --no-backup` first, making setup idempotent and tolerant of stale Docker state. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../e2e-tests/test-applications/supabase-nextjs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-packages/e2e-tests/test-applications/supabase-nextjs/package.json b/dev-packages/e2e-tests/test-applications/supabase-nextjs/package.json index cb84814fd29a..5fe87981b682 100644 --- a/dev-packages/e2e-tests/test-applications/supabase-nextjs/package.json +++ b/dev-packages/e2e-tests/test-applications/supabase-nextjs/package.json @@ -7,7 +7,7 @@ "build": "next build", "start": "next start", "clean": "npx rimraf node_modules pnpm-lock.yaml .next", - "start-local-supabase": "supabase init --force --workdir . && supabase start -o env && supabase db reset", + "start-local-supabase": "supabase init --force --workdir . && (supabase stop --no-backup || true) && supabase start -o env && supabase db reset", "test:prod": "TEST_ENV=production playwright test", "test:build": "pnpm install && pnpm start-local-supabase && pnpm build", "test:assert": "pnpm test:prod"