EthioDeploy
DocsPricingDomainsBlogToolsChangelog
Deploy guides/SvelteKit

Deploy a SvelteKit app

SvelteKit needs one change before it runs on a container host: swap adapter-auto for adapter-node and add a start script. Then it's a normal git-push deploy.

Last updated September 29, 2026

What we run by default
Detected by
package.json
Install
npm ci / pnpm / yarn (from your lockfile)
Build
npm run build
Start
npm start (node build)

These run automatically, so leave the command fields blank. Only override them in Settings → Build if you need something different.

Fix this first: Fix this first: adapter-auto has no runnable server here

A fresh SvelteKit project ships with adapter-auto, which picks an output by detecting known hosts (Vercel, Netlify, and so on). On a generic container host it finds none and produces no server; the build log says Could not detect a supported production environment. Use adapter-node instead.

Prepare your app

  1. Swap the adapter:
    npm install -D @sveltejs/adapter-node
    npm uninstall @sveltejs/adapter-auto
  2. Use it in svelte.config.js:
    import adapter from '@sveltejs/adapter-node';
    
    export default {
      kit: { adapter: adapter() },
    };
  3. 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 ORIGIN to your public URL (for example https://<project-slug>.ethiodeploy.app, or your custom domain). Without it, form actions are rejected as cross-site POSTs behind the proxy.
  • $env/static/* values and PUBLIC_ variables are baked in at build time. Set them before deploying. $env/dynamic/* is read at runtime.
  • A .env file 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

  1. Sign in with GitHub and install the EthioDeploy app on the repo.
  2. Click “New Project” and pick the repo.
  3. 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

TanStack StartAstroNuxt

All guides on the deploy guides page. Custom domains, env vars, addons and billing are in the docs.

On this page
Prepare your appEnvironment variablesAdd a databaseDeployTroubleshootingQuestions
Deploying with an agent?Point it at llms.txt. Every guide is in one file there.Open llms-full.txt →
EthioDeploy

Agentic first development and deployment, started in Ethiopia, built for developers everywhere.

Telegram community
Product
PricingAI coding agentAgent mode docsDomainsCLIFree backend hostingHosting in EthiopiaChangelog
Deploy guides
Next.jsNode.jsPythonSvelteKitTanStack StartAstroNuxtReact RouterHonoStrapiDjangoFastAPIFlaskStreamlitExpressNestJSLaravelRailsGoTelegram botDiscord botLovableBoltReplitv0Google AI StudioBase44Firebase StudioClaude Code & Cursor
Compare
vs Herokuvs Vercelvs Rendervs Railwayvs Fly.iovs Netlifyvs KoyebHeroku alternativesVercel alternativesNetlify alternativesRender alternativesRailway alternativesFly.io alternativesReplit alternativesPythonAnywhere alternativesDigitalOcean App Platform alternativesGlitch alternatives
Resources
DocsBlogFree toolsAboutSupportContactllms.txt
© 2026 EthioDeployPay by card in USD or bank transfer in ETBTermsPrivacy