published fresh until

"$SKIP_ASSET_UPLOAD" was unexpected at this time. Supabase

Summary As of October 2026, diagnose Supabase Studio source-build failures at the package-script shell: cmd.exe cannot parse the POSIX conditional; a Bash script shell is a documented pnpm option, not a confirmed Supabase release fix (checked 2026-10-28).

Not for Next.js TypeScript compilation failures after Studio scripts start; application access policies, see supabase-rls-audit-before-launch

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

"$SKIP_ASSET_UPLOAD" was unexpected at this time. means cmd.exe is rejecting the Studio script's POSIX conditional before compilation.

First action — Untested experiment: select an installed Git Bash executable with pnpm config set scriptShell "<path-to-your-bash.exe>", substituting its actual path. Record the previous setting first, then compare pnpm run build:next from apps/studio and restore the setting afterward. This is a shell experiment, not a confirmed Supabase release fix; preserve the asset-upload gate.

What changed

  • VanshBhardwaj24's report, dated 2026-10-22 (checked 2026-10-28), identifies a Studio source script that assumes POSIX shell syntax. It does not identify a regression release or a released repair.
  • pnpm's script-shell documentation (checked 2026-10-28) documents selecting Bash for package scripts. A Studio build using that setting remains an untested experiment.

How to migrate

1. Inspect apps/studio/package.json and confirm the failure occurs in build:next before compilation. Check which shell pnpm actually uses for scripts; opening a Bash terminal alone need not change that setting. 2. Untested experiment: select an installed Git Bash executable using pnpm’s documented setting, then run the Studio script from apps/studio. Replace the placeholder with the actual path of your installed Git Bash executable:

pnpm config set scriptShell "<path-to-your-bash.exe>"
pnpm run build:next

Record the previous script-shell setting and restore it after the comparison. The configuration command is documented; successful Studio compilation is not verified by the report. Use a checkout without production upload credentials. 3. Untested experiment: if maintaining the scripts, replace the shell conditional and shell-script invocation with a portable runner that preserves the upload gate. Test both gate branches with a stub uploader. Do not merely remove the failing conditional.

What breaks

Diagnostic: "$SKIP_ASSET_UPLOAD" was unexpected at this time.

The report attributes immediate failure to cmd.exe parsing the POSIX conditional. Setting the variable to skip uploading does not make that syntax valid. The report uses pnpm 11.13.1 (checked 2026-10-28); the failure occurs during the Studio source build.

What to test

Confirm compilation actually starts and finishes, then test the upload gate separately with a stub uploader. Verify that the ordinary development path does not upload assets. A later compiler failure is a new diagnostic, not proof that the shell override failed.

Pitfalls

Do not fix this by changing database policies or upgrading unrelated application dependencies. Do not assume a Bash terminal controls the shell used inside pnpm. pnpm also documents a shell emulator, but its documentation does not prove compatibility with this build's external shell script.

Before making changes

Read the linked Supabase issue and pnpm script-shell docs before editing. Identify the package-script shell and explain why the conditional fails. Evaluate the documented Bash setting or a portable runner as an untested experiment; preserve asset-upload conditions and test with a stub uploader. Do not guess a fixed Supabase release.

Limits

Evidence for the Supabase symptom is one reproducible report; the Bash-shell build and portable runner remain untested experiments, with no successful workaround or fixed release established by the source. Bash availability and the rest of the source-build prerequisites still need checking.

Started from a post by @VanshBhardwaj24, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# "$SKIP_ASSET_UPLOAD" was unexpected at this time. Supabase
Summary: As of October 2026, diagnose Supabase Studio source-build failures at the package-script shell: cmd.exe cannot parse the POSIX conditional; a Bash script shell is a documented pnpm option, not a confirmed Supabase release fix (checked 2026-10-28).
Copy for agent
get the whatworks thread supabase-skip-asset-upload-unexpected-windows-studio-build and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread supabase-skip-asset-upload-unexpected-windows-studio-build
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp