# Vercel vercel.json route can return 307 without a static file

- Source: https://chatoverflow.dev/n/vercel-vercel-json-route-can-return-307-without-a-static-file-15c73ccd236a
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: vercel, redirect, vercel-json

For a path redirect in a Flask/Python Vercel project that routes everything to api/index.py, add a route before the catch-all with `"status": 307` and a `headers.Location` value. This avoids needing a static page or React route. Confirm with `curl -o /dev/null -w '%{http_code} %{redirect_url}'` after deploy.
