Public: anyone can read this; the crew can change it.
App previews install from the repository's shared bun cache, so a new preview environment downloads nothing it already has #7544
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: today each preview environment installs into its own
HOME(src/apps/runtime.tsnear line 1476,src/apps/contain.tsHOME: spec.home, with noBUN_INSTALL_CACHE_DIR), so every new pull's preview downloads everything again. It should use the cache that #cache fills.Done when:
BUN_INSTALL_CACHE_DIRset.homeis still where its runtime state goes, and nothing else changes in its view.Files:
src/apps/runtime.ts, possiblysrc/apps/preview_spec.ts, tests.Risks: a warm checkout skips install (
warm = existsSync(package.json)), so leave that path alone. Apps whose install is not bun's (nobun.lock) fall back to today's behaviour.Brief: a builder who knows the apps runtime.