Skip to content

fix: make Vercel FastAPI runtime writable - #48

Merged
CuriosityQuantified merged 1 commit into
mainfrom
fix/vercel-runtime
Aug 10, 2026
Merged

CuriosityQuantified merged 1 commit into
mainfrom
fix/vercel-runtime

Conversation

@CuriosityQuantified

Copy link
Copy Markdown
Owner

Problem

The deployed Vercel FastAPI function crashes during startup because it creates media directories and opens SQLite under the read-only deployment filesystem. The legacy catch-all also forwards /api/* without stripping the prefix.

Change

  • Route runtime-generated media and the SQLite fallback to writable serverless temp storage
  • Support explicit runtime/database path overrides
  • Normalize Vercel /api/* requests
  • Ensure media mounts precede the UI catch-all
  • Use the supported Python 3.12 project configuration
  • Add Vercel runtime regression coverage

Verification

  • Python 3.12 targeted tests: 6 passed
  • Python 3.12 CI-equivalent unit suite: 237 passed, 1 skipped, 6 deselected
  • Read-only deployment-copy smoke test: root 200 and /api/simulations 200
  • Media serving smoke test: 200
  • npm run build: passed

Note

Vercel CLI deployment could not be run locally because the configured Vercel token is invalid; merging this PR will allow the connected Git integration to deploy normally.

@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
save-the-world Ready Ready Preview Aug 10, 2026 1:48am
sim-local Ready Ready Preview Aug 10, 2026 1:48am

@CuriosityQuantified
CuriosityQuantified merged commit 9f8c6db into main Aug 10, 2026
6 checks passed
@CuriosityQuantified
CuriosityQuantified deleted the fix/vercel-runtime branch August 10, 2026 01:50
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