Build Output API (v3) Feedback #577
Replies: 18 comments 53 replies
-
After a first read, this is a lot easier to understand than the previous version! I'm going to migrate
|
Beta Was this translation helpful? Give feedback.
-
I'm not sure how to properly handle the following case. Let's say I have an endpoint
|
Beta Was this translation helpful? Give feedback.
-
I just want to ask how to downgrade to build output V2 :( A few days ago, Vercel seems to have made some "changes" to my account that when deploying a serverless function, Is there a way to exit the "canary" or V3 version? |
Beta Was this translation helpful? Give feedback.
-
Well I got this problem,too. |
Beta Was this translation helpful? Give feedback.
-
This versions feels easier to work with. Amazing work! Btw, I saw an example of a serverless function with a |
Beta Was this translation helpful? Give feedback.
-
Good step forward. I do have a question: how does one specify multiple prerender paths for a function? I looked closely at the documentation, and some of the prior response, but couldn't see a clear answer. |
Beta Was this translation helpful? Give feedback.
-
Another question, this time regarding routes rewrites. {
"version": 3,
"routes": [
{ "handle": "filesystem" },
{ "src": "/blog/(?<slug>[^/]*)", "dest": "/blog/post?slug=$slug" }
],
} If I call Use caseI want to rewrite specific URLs to a file generated at build time. In this particular case the Let's take a framework that handles routing internally, with routes declared as such: But what if I have a more complex case, like 2 routes: |
Beta Was this translation helpful? Give feedback.
-
🔥 First beta version of vite-plugin-vercel released (starting from |
Beta Was this translation helpful? Give feedback.
-
Why does I just noticed this, but by looking at my first builds with API v3, it seems that it already happened back then. EDIT: It seems to trigger the internal build steps because I have a |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm trying to get any parameters from middleware built on Build Output API. For some reason, the request object is always empty. I couldn't find any examples in the folder utilizing those properties 🫤 |
Beta Was this translation helpful? Give feedback.
-
Hi! I've successfully updated our Hydrogen example to v3 🎉 Some comments:
|
Beta Was this translation helpful? Give feedback.
-
I'm not sure is it right place to ask question here. I searched and guess maybe it's about this buid output API. Since I would like to deploy a express.js app with
I followed the guide here. I'm not sure why the error shows. And how should I config the json? |
Beta Was this translation helpful? Give feedback.
-
I can't find a way to match a glob route and direct to a single serverless function. E.g., I want |
Beta Was this translation helpful? Give feedback.
-
Hey all, I'm trying to deploy Payload alongside of any existing Next app as a bunch of serverless functions, using the Build Output API. I've got a simple example function deploying properly to Vercel, but the problem is that Any thoughts here? Is something like this on the roadmap? I realize this is probably more of a Next issue vs. specifically related to the Build Output API so I'll likely go and open a corresponding discussion there. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Are the TypeScript schemas available as an npm package? or are we encouraged to create our own |
Beta Was this translation helpful? Give feedback.
-
I’m trying to do an edge function deployment with the Build Output API v3. I’m getting the following error on after building and deploying with —prebuilt. ‘the edge function ‘hydrogen’ is referencing unsupported modules’ Not sure how to solve this. Perhaps there is documentation missing for these errors? |
Beta Was this translation helpful? Give feedback.
-
The docs page seems to have formatting issues wrt the code snippets https://vercel.com/docs/build-output-api/v3. |
Beta Was this translation helpful? Give feedback.
-
Hello, could I please get some clarification about the Handler Route phases? From my understanding, each of these phases runs at different points during routing. This is the flow that I believe takes place and I would appreciate some clarification as to whether this is accurate or not.
I'm not sure if I'm understanding how the flow for the |
Beta Was this translation helpful? Give feedback.
-
We have been working hard on the Build Output API (previously the File System API). Version 1 tested the waters, Version 2 exposed some pain points, and Version 3 is now ready for your feedback!
What is the Build Output API?
The Build Output API is an interface between framework builds and Vercel deployments that is serialized to and from the file system. It’s more of a concern of framework authors than app authors who deploy to Vercel.
If you are a framework author or a framework community member looking to integrate with Vercel, you can use the Build Output API to make deploys seamless for your framework.
All Vercel platform features are supported by the latest iteration of the Build Output API.
Version 1 (docs)
Version 1 supported static files and Node.js (only) serverless functions with some configuration options.
It did not completely support all of Vercel’s features. It was also a bit clunky to work with.
Version 2 (docs)
Version 2 was inspired by Next.js build outputs. It expanded on Version 1 to support more configuration options and Edge Functions. However, it ended up being harder to work with. Some framework authors preferred Version 1.
The documentation was greatly expanded to explain all the options.
Version 3 (docs)
Version 3 generalizes the interface further. It no longer bears a resemblance to Next.js’ build output. It is intended to be much easier to understand and implement.
We're also working on a new workflow where a build can be created locally with the
vc build
command, which creates.vercel/output
in Build Output API format. You can inspect the result, then deploy it withvc deploy --prebuilt
. This is great for debugging your build output (without having to deploy). It also allows users to deploy to Vercel without sending us their source code. Stay tuned for updates about this new CLI command!Discussion
What feedback or suggestions do you have about Build Output API (v3)?
Beta Was this translation helpful? Give feedback.
All reactions