You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: copy API serverless function into output directory for Vercel detection
Vercel's `framework: null` defaults outputDirectory to `public/` when that
directory exists and only detects serverless functions INSIDE the output
directory. The bundled `api/index.js` was at the project root (outside
`public/`) so Vercel never recognised it — all `/api/*` routes fell through
to the SPA catch-all and returned `index.html`.
Added step 4 to `build-vercel.sh` that copies `api/index.js` into
`public/api/` after the SPA files are placed in `public/`. This ensures
Vercel detects it as a serverless function within the output directory.
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/85727540-2aac-406e-83f5-790a0c650da3
Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
0 commit comments