vercel@54.18.3
📦 vercel-functionsView on GitHub →
✨ 2 features🐛 7 fixes🔧 3 symbols
Summary
This patch primarily fixes several issues related to running container builds in `vercel dev` mode, improving Docker daemon error reporting and reusing the container dev server across requests. Dependencies were also updated.
✨ New Features
- The dev server now correctly maps the container preset's <detect> sentinel to discovered Dockerfiles (Dockerfile.vercel, Containerfile.vercel, Dockerfile, or Containerfile) when used as a top-level build.
- The container dev server is now reused across requests, keeping a live container running instead of rebuilding the image and starting a new container on every HTTP request.
🐛 Bug Fixes
- Fixed `vercel dev` for the `container` framework when used as a top-level build, preventing warnings about not matching source files.
- Resolved an issue where the `@vercel/container` `build()` path threw `` `vercel dev` cannot build container images from a Dockerfile `` during dev.
- The dev server no longer incorrectly treats container build output (an OCI image reference) as a zip-based function, fixing potential `output.createZip is not a function` errors.
- The dev path now correctly discovers `Dockerfile.vercel` / `Containerfile.vercel` opt-in markers when the container entrypoint is the `<detect>` sentinel, matching build path behavior.
- Improved error handling for `vercel dev` when the Docker daemon is not running, providing a clear failure message instead of a cryptic exit code 125 error.
- Container start failures during dev now correctly name the container and include the underlying Docker error output.
- Aligned `services` and `experimentalServicesV2` service-name validation with the platform schema.