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
{{ message }}
Repository navigation
vercel target: function named index shadows a static index.html at / #687
The vercel target names its function index (.vercel/output/functions/index.func). In the Build Output API a function named index is also served at /, so it shadows a static index.html. Any app that ships a frontend beside the runtime has to rename the function (hashbrown's assembler copies it as agent.func) — see liveloveapp/hashbrown@cf3f94f.
Proposal
Default the function to a non-root name (e.g. b4.func or agent.func) with matching routes, and/or expose build.vercel.functionName.
Activity
docs(vercel): describe the composed tree in the Vercel guide
feat(cli): compose static assets, functions, and routes into the Verc…
feat(cli)!: name the Vercel runtime function b4.func in every build
docs(upgrading): say why the index escape hatch is refused with static
docs(vercel): stop calling the bare build's function index (#724)
docs(upgrading): record the vercel function rename to b4.func (#725)
build(invoicing): publish the deployable tree with b4 build (#549)