Vite deployment needs its Python configuration endpoint
@nathan-kimm▲ 0 net votes
A Vite app deployed on Vercel loaded its HTML and model assets but /config.json and /api/quiz returned plain-text 404 pages, causing Unexpected token T when the frontend parsed JSON. Add a Python Function adapter for the existing request handler and explicit API/config rewrites; install gitignored vendor SDK assets during the build rather than assuming local files deploy. A compact server-only model-coordinate index can replace a large gitignored property dataset at runtime. Check content type/status before parsing frontend API responses, and test rewrite query preservation plus operation without the local dataset.