Framework Frankfurt, Germany
Deploy SvelteKit on Nodion
Nodion builds SvelteKit with its Node.js buildpack and reads the adapter from package.json: with @sveltejs/adapter-node it starts your app with node build, with @sveltejs/adapter-static it serves build/ as a static site. The template default, adapter-auto, does not work on Nodion, so switch adapters first. Your app runs in Frankfurt.
- Detected by
@sveltejs/kitand the adapter in package.json- Start
node build(adapter-node) or static files (adapter-static)- Node.js
- 22, 24 (default), 26
- Region
- EU Central (Frankfurt)
Deploy SvelteKit step by step
- Switch from adapter-auto to adapter-node Run
npm i -D @sveltejs/adapter-node, remove@sveltejs/adapter-autoand use the new adapter in your config. Nodion reads the adapter from package.json, and the config decides what the build writes, so change both. In SvelteKit 3 the config lives in thesveltekit()options invite.config.js; on SvelteKit 2 it iskit.adapterinsvelte.config.js. vite.config.js (SvelteKit 3)import adapter from "@sveltejs/adapter-node"; import { sveltekit } from "@sveltejs/kit/vite"; import { defineConfig } from "vite"; export default defineConfig({ plugins: [ sveltekit({ adapter: adapter(), paths: { origin: "https://shop.example.com" }, }), ], }); - Commit the lockfile, skip the start script Commit your lockfile; the build fails without one. Nodion runs your
buildscript and startsnode build, and adapter-node listens on thePORTthat Nodion sets. A start script, if you add one, replaces that command. - Set the public origin Nodion terminates HTTPS in front of your app, so SvelteKit cannot tell from the request which URL your visitors use, and without it form submissions are rejected as cross-site. In SvelteKit 3, set
paths.originto your public URL as in the config above; it replaces adapter-node'sORIGINvariable. On SvelteKit 2, setORIGINon the Environment tab instead, for examplehttps://shop.example.com. - Build-time and runtime variables Values from
$env/static/privateand$env/static/publicare inlined during the build, so they need the Build flag on the Environment tab.$env/dynamic/privateand$env/dynamic/publicare read while the server runs and work with normal variables. - Create the app and push In the dashboard, create an application from your GitHub, GitLab, Bitbucket or Gitea repository in the region EU Central. Every push builds a new release, and traffic moves to it once
/answers with a 2xx or 3xx status. If/answers 401 or 404, add a route such assrc/routes/health/+server.jsthat returns 200 and set/healthas the health check path.
Good to know
- Static sites with adapter-staticWith
@sveltejs/adapter-static, Nodion servesbuild/with a static web server and anindex.htmlfallback. Prerender your pages withexport const prerender = truein the root+layout.js. For a single-page app, turn off SSR there and setfallback: 'index.html'in the adapter options, because Nodion needs anindex.htmlinbuild/. No Node.js server runs, so the smallest size is enough. - Keep one adapter in package.jsonNodion checks for adapter-static first, then adapter-node. If both are installed, the app is built as a static site, so remove the adapter you do not use.
What Nodion runs for you
- Deploys without downtime Push to your branch and Nodion builds a new release. Traffic switches once the new instances answer their health check; a failed release leaves the running one in place. Apps with a local volume restart instead, because the disk belongs to one instance.
- Databases next to the app Managed PostgreSQL, pgvector, MySQL, Valkey and ClickHouse in the same region. Attached databases arrive as
DATABASE_URL,REDIS_URLorCLICKHOUSE_URL. - Previews per pull request Turn on previews and pull requests from your repository get their own app with its own URL and fresh, empty databases, created automatically or by hand. Forks and bot pull requests are skipped.
- Workers, cron jobs and scaling Run workers as extra processes of the same app, schedule jobs on the Cron tab, and scale every process to up to 16 instances.
- Release step With buildpacks, a Procfile
release:line runs with every new build. Dockerfile apps, and redeploys or rollbacks to an earlier image, use a release command set on the app itself, which also takes precedence over the Procfile line. On static sites a release step runs in an image that holds only the built files. - Logs and metrics Build, release and runtime logs plus CPU, memory, disk and network metrics for every instance in the dashboard.
- Domains and HTTPS A default hostname with HTTPS from the first deploy; your own domains get certificates automatically.
Further reading
- Preview Environments Explained: An App per Pull Request A running copy of your app for every pull request: what preview environments are good for, where they get tricky and how Nodion handles them.
- Dockerfile vs Buildpacks: Which One Should You Use? Both turn your code into a container image. What differs is who writes the build steps, and that decides control, maintenance and security updates.
SvelteKit on Nodion: questions and answers
Why does my SvelteKit app not deploy with adapter-auto?
adapter-auto only knows a fixed list of hosts, and Nodion is not on it, so the build has no output Nodion can use. Install @sveltejs/adapter-node or @sveltejs/adapter-static and use it in your config: vite.config.js in SvelteKit 3, svelte.config.js in SvelteKit 2.
Do form actions, server load functions and API routes work?
Yes, with adapter-node. Nodion runs your app as a long-running Node.js server, so +page.server.js, +server.js and form actions work as they do with node build on your machine. Set the public origin (paths.origin in SvelteKit 3, ORIGIN in SvelteKit 2) so that form actions are not rejected as cross-site.
Do I need a Dockerfile for SvelteKit?
No. With adapter-node or adapter-static, the Node.js buildpack builds the app from package.json. If your repository has a Dockerfile, the create form picks the Dockerfile strategy instead.
Where does my SvelteKit app run?
In the EU Central region in Frankfurt, Germany. Build, registry, the app and its databases, volumes, buckets, logs and metrics stay in that region, and Nodion's API and control plane are hosted in Germany. Nodion GmbH is based in Stuttgart.
Can I use SvelteKit in line with the GDPR?
Nodion provides the basis for it: Nodion GmbH is based in Stuttgart, Germany, in the Frankfurt region the app, its databases and volumes run in Germany, and you conclude the data processing agreement (DPA) under Art. 28 GDPR electronically in the dashboard. Whether your setup complies also depends on how you configure and use the app.
How much does it cost to run SvelteKit on Nodion?
An app instance starts at 1 EUR per month. The setup in the cost box costs 2 EUR per month: App 2 EUR. Prices are net and billed per second, and you pick bigger sizes or more instances whenever you need them.
Can I use my own domain for my SvelteKit app?
Yes. Every app gets a default hostname with HTTPS. Add your own domain on the app's Domains tab; the TLS certificate is issued and renewed automatically.