Migrating to SvelteKit @sveltejs/adapter-node@6.0.0-next.2
Version @sveltejs/adapter-node@6.0.0-next.2 introduces 2 breaking changes. This guide details how to update your code.
Released: 7/6/2026
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
kit.paths.originkit.prerender.originadapter-nodeBreaking Changes
●Issue #1
The configuration option `kit.prerender.origin` has been removed. Users should migrate to using the new `kit.paths.origin` configuration option.
●Issue #2
The `ORIGIN` environment variable used by the `adapter-node` has been removed. Users should migrate to using the new `kit.paths.origin` configuration option.
Migration Steps
- 1Replace usage of the removed configuration option `kit.prerender.origin` with the new `kit.paths.origin` in your SvelteKit configuration.
- 2If using `adapter-node`, remove reliance on the `ORIGIN` environment variable and configure the origin via `kit.paths.origin` instead.
Release Summary
This release introduces a major configuration change by replacing `kit.prerender.origin` with the new `kit.paths.origin` option and removing the corresponding environment variable for `adapter-node`.
Need More Details?
View the full release notes and all changes for SvelteKit @sveltejs/adapter-node@6.0.0-next.2.
View Full Changelog