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