Skip to content

fix(tooling): keep apps/server/dist across branch checkouts - #421

Merged
patroza merged 4 commits into
fork/devfrom
fix/preserve-server-dist-on-checkout
Aug 26, 2026
Merged

fix(tooling): keep apps/server/dist across branch checkouts#421
patroza merged 4 commits into
fork/devfrom
fix/preserve-server-dist-on-checkout

Conversation

@omegent-app

@omegent-app omegent-app Bot commented Aug 22, 2026

Copy link
Copy Markdown

Problem

.githooks/post-checkout deletes apps/*/dist on every branch checkout. The production server serves apps/server/dist/client live from disk, so a Discord-only deploy's git switch immediately returns Web assets unavailable (HTTP 503) until something rebuilds the tree.

Fix

Skip apps/server/dist in the emit wipe. Still clear other apps/*/dist, dist-electron, packages/*/dist, and *.tsbuildinfo.

Test plan

  • Harness: server dist preserved; web/package dist removed
  • After merge + deploy: Discord-only promote no longer 503s https://t3vm.tail86038f.ts.net/

opened by andreasimonecosta in chat thread Discord · Discord · T3

post-checkout wiped apps/*/dist to clear stale TS emit. Deploy clones and
any long-running `t3 serve` read apps/server/dist/client from disk per
request, so a Discord-only `git switch` immediately 503s the UI with
"Web assets unavailable" until a rebuild. Preserve apps/server/dist;
packages/*/dist and tsbuildinfo still clear.

Co-authored-by: Andrea Simone Costa <24520167+jfet97@users.noreply.github.com>
@omegent-app
omegent-app Bot marked this pull request as ready for review August 22, 2026 11:07
Keep the post-checkout skip of apps/server/dist so Discord-only deploys
and live t3 serve do not 503 "Web assets unavailable" after git switch.
Branch checkout must keep apps/server/dist/client; wiping it 503s
"Web assets unavailable" for Discord-only deploys and live t3 serve.
The bash harness is not on vp test. A vitest file fails CI if
post-checkout starts wiping apps/server/dist/client again.
@patroza
patroza merged commit 2c93384 into fork/dev Aug 26, 2026
7 checks passed
@patroza
patroza deleted the fix/preserve-server-dist-on-checkout branch August 26, 2026 08:37
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.

1 participant