Prepare your app
- Swap the adapter:
npm install -D @sveltejs/adapter-node npm uninstall @sveltejs/adapter-auto
- Use it in
svelte.config.js:import adapter from '@sveltejs/adapter-node'; export default { kit: { adapter: adapter() }, }; - Add a start script to
package.json:"scripts": { "start": "node build" }
adapter-node listens on 0.0.0.0 and reads PORT by default, so no code change is needed for the health check. Never use vite dev as the production start command, since it only binds localhost.
Environment variables
Add variables in the project's settings. They're available both while the app builds and while it runs, so build-time values (like framework-public keys) work without extra setup. See Environment variables.
- Set
ORIGINto your public URL (for examplehttps://<project-slug>.ethiodeploy.app, or your custom domain). Without it, form actions are rejected as cross-site POSTs behind the proxy. $env/static/*values andPUBLIC_variables are baked in at build time. Set them before deploying.$env/dynamic/*is read at runtime.- A
.envfile isn't loaded in production. Use project env vars instead.
Add a database
Add a Postgres addon and DATABASE_URL is injected automatically. Read it from $env/dynamic/private so it's resolved at runtime and not baked into the build. The database isn't reachable while the app builds, so run migrations in front of the Start command in Settings → Build, for example npx drizzle-kit migrate && node build.
Deploy
- Sign in with GitHub and install the EthioDeploy app on the repo.
- Click “New Project” and pick the repo.
- Watch the build in the dashboard. When the health check passes, your app is live at
<project-slug>.ethiodeploy.app. Every push to the default branch redeploys, and the old version keeps serving until the new one is healthy.
Troubleshooting
Could not detect a supported production environment
Cause: The project still uses adapter-auto.
Fix: Switch to @sveltejs/adapter-node.
Cannot find module … index.js on start
Cause: There's no start script.
Fix: Add "start": "node build".
Cross-site POST form submissions are forbidden (403)
Cause: ORIGIN isn't set, so the request origin doesn't match.
Fix: Set ORIGIN to your public URL.
PUBLIC_ or static env values are empty
Cause: They weren't set when the app was built.
Fix: Add them in Settings and redeploy.
Client IP shows the proxy address
Cause: adapter-node isn't told which forwarded header to trust.
Fix: Set ADDRESS_HEADER (for example X-Forwarded-For) and XFF_DEPTH.
Still stuck? Check the deployment's build log in the dashboard, or see Troubleshooting.
Questions
adapter-auto only produces output for hosts it recognizes, such as Vercel or Netlify. On a container host it finds none and builds no server. adapter-node builds a Node server that listens on 0.0.0.0 and reads PORT, which is what EthioDeploy runs.
Yes. The Free plan runs one project with a 512 MB Postgres database at no cost. The app sleeps after 30 minutes without traffic and wakes on the next request. Pro ($10/month) keeps it always on.
SvelteKit checks that a POST comes from the same origin. Behind a proxy it can't tell the public URL on its own, so set the ORIGIN env var to your public URL and redeploy.
Ready to deploy?
Sign in with GitHub and pick your repo. No Dockerfile, no YAML.
More guides
All guides on the deploy guides page. Custom domains, env vars, addons and billing are in the docs.