vercel@54.18.3
·
11 commits
to main
since this release
Patch Changes
-
262e935: Fixed
vercel devfor thecontainerframework when used as a top-level build (outside ofservices).- The dev server now maps the container preset's
<detect>sentinel to a discovered Dockerfile (Dockerfile.vercel,Containerfile.vercel,Dockerfile, orContainerfile), so the build is recognized instead of warning that it "did not match any source files". - The
@vercel/containerbuild()path no longer throws`vercel dev` cannot build container images from a Dockerfileduring dev. Containers are always built from a Dockerfile/Containerfile (there is no prebuilt-image input); in dev the image is built and run locally bystartDevServer, sobuild()returns a stable local tag without pushing to a registry. - The dev server no longer treats a container build output (an OCI image reference,
runtime: "container") as a zip-based function. It previously failed withoutput.createZip is not a functionwhile trying to spin the image up underfun; container outputs are now skipped there and served by the builder'sstartDevServerinstead. - The dev path (
startDevServer) now discovers theDockerfile.vercel/Containerfile.vercelopt-in markers when the container entrypoint is the<detect>sentinel, matching the build path. Previously it only looked for a bareDockerfile, so a project using a.vercelmarker failed with "Container service must specify an entrypoint…" even though deploys worked. The discovery helper is now shared between the build and dev paths. vercel devnow fails fast with a clear message when the Docker daemon isn't running ("Could not connect to the Docker daemon. Start Docker…") instead of a crypticContainer "undefined" exited (code 125) before becoming ready.. Container start failures also now name the actual container and include the underlying Docker error output.- The container dev server is now reused across requests. Previously the image was rebuilt and a fresh container started on every HTTP request (the result was missing the
persistentflag); now a live container is kept and reused for the same service, matching how other persistent builders behave.
- The dev server now maps the container preset's
-
9e3f9cd: [services] service name validation
-
9e3f9cd: Align
servicesandexperimentalServicesV2service-name validation with the platform schema. -
Updated dependencies [262e935]
-
Updated dependencies [e05ed3c]
- @vercel/container@0.0.4
- @vercel/next@4.20.2
- @vercel/static-build@2.11.4