Packages

@sveltejs/adapter-node

6.0.0 · 1 Oct 2026MIT1.2M / weekRepositoryHomepagenpmAtom feed

Your version

6.0.0

latestmajor1 Oct 2026Where it was published

In short

9 breaking3 new9 fixed9 internal

  • breaking

    Populate env vars before instrumentation.server.js is evaluated and update the adapter instrumentation API

  • breaking

    Migrate from rollup to rolldown

  • breaking

    Require SvelteKit 3

  • breaking

    Add kit.paths.origin config option, remove kit.prerender.origin and the adapter-node ORIGIN environment variable

  • breaking

    Require vite@^8.0.12, the first Vite 8 release bundling stable rolldown 1.0.0

  • breaking

    Replace the builder.generateManifest with builder.generateServerInstance and builder.manifest

  • breaking

    Record the list of static assets at build time, files added to the output afterwards are not served

  • breaking

    Validate static assets with content-hash ETags and stop sending Last-Modified

Release note

Major Changes

  • breaking

    Populate env vars before instrumentation.server.js is evaluated and update the adapter instrumentation API

  • breaking

    Migrate from rollup to rolldown

  • breaking

    Require SvelteKit 3

  • breaking

    Add kit.paths.origin config option, remove kit.prerender.origin and the adapter-node ORIGIN environment variable

  • breaking

    Require vite@^8.0.12, the first Vite 8 release bundling stable rolldown 1.0.0

  • breaking

    Replace the builder.generateManifest with builder.generateServerInstance and builder.manifest

  • breaking

    Record the list of static assets at build time, files added to the output afterwards are not served

  • breaking

    Validate static assets with content-hash ETags and stop sending Last-Modified

  • breaking

    Serve static assets only to GET and HEAD requests

Minor Changes

  • Serve static assets from tables recorded at adapt time, instead of using sirv

  • Better error logging

Patch Changes

  • Prevent scheme-like path segments from causing off-site trailing-slash redirects

  • Serve static files with the Content-Type recorded in the manifest

  • Externalize @opentelemetry/api to prevent bundler chunk colocation between instrumentation.server.js and application code

  • Abort request.signal when the response closes prematurely, via a new response option for getRequest

  • Allow prerelease versions of SvelteKit 3 to satisfy the peer dependency range

  • Always bundle dev dependencies

  • Correctly bundle entrypoints on Windows

  • Bundle Svelte libraries listed in dependencies instead of externalising them

  • Preserve stripped path prefixes by making trailing-slash redirects relative

  • Don't send Vary: Accept-Encoding for assets that were never precompressed