Skip to content

fix(cli): shorten serve argv#5712

Merged
avallete merged 1 commit into
supabase:developfrom
7ttp:fix/serve-enametoolong
Jun 26, 2026
Merged

fix(cli): shorten serve argv#5712
avallete merged 1 commit into
supabase:developfrom
7ttp:fix/serve-enametoolong

Conversation

@7ttp

@7ttp 7ttp commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

TL;DR

fixes a regression in supabase functions serve by removing the bundled Edge Runtime bootstrap script from the spawned docker run ... sh -c ... argv and mounting it into the container as /root/index.ts instead

This keeps the startup command small, preserves the runtime behavior, and avoids the ENAMETOOLONG: name too long, uv_spawn failure...

What's fixed?

functions serve ts path was embedding the full bundled runtime template directly into the docker entrypoint command

on win, that made the final spawn argv large enough to fail before docker even started,
which surfaced as ENAMETOOLONG: name too long, uv_spawn

Before:

the runtime template was embedded directly into the docker startup command and hit spawn length limits

After:

the template is mounted from a temp file, so the startup command stays short

ref:

@7ttp 7ttp requested a review from a team as a code owner June 26, 2026 14:03
@7ttp 7ttp self-assigned this Jun 26, 2026
@avallete avallete added this pull request to the merge queue Jun 26, 2026
Merged via the queue into supabase:develop with commit 279d0c0 Jun 26, 2026
27 checks passed
@7ttp 7ttp deleted the fix/serve-enametoolong branch June 26, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENAMETOOLONG

2 participants