Svelte and SvelteKit deployment guide # Deploy svelte and SvelteKit on Deplomo Deploy Svelte and SvelteKit on Deplomo for single-page apps, SSR, and static sites. Connect from Git or the CLI, set build and run commands, configure environment variables and a domain, then deploy your project. Short answer forDeploy Svelte To use SvelteKit, connect your code repository and deploy with automatic cloud builds. For details, see the [Svelte hosting](/products/svelte) and guides [Deployment guide](/guides) in front of you Last reviewed:6 September 2026 ## Prepare your project for Deploy Svelte Add the project dependency files, `package.json and lockfile` to your Git repository. Default build and run commands for this stack: ``` # Build command npm ci && npm run build # Run command node build ``` For SSR, use adapter-node with HOST=0.0.0.0 and the PORT environment variable. ## Automatic deployment directly from the Git repository - Create a new project and environment in the Deplomo user panel. - Connect the service to the GitHub or GitLab repository and the desired branch. - Set the build and run commands to match your project. - Set the required environment variables, then deploy. - Connect your custom domain in the Domains section and use free SSL. ## Deploy a local folder with Deplomo CLI ``` curl -fsSL https://get.deplomo.com/install.sh | sh deplomo login cd your-project deplomo deploy deplomo logs ``` Use the Deplomo CLI to deploy local code directly without pushing it to Git. On Windows (PowerShell), use `irm https://get.deplomo.com/install.ps1 | iex` instead of the first command. ## Production tips for Svelte and SvelteKit - Choose the adapter for SSR or static output. - Read the public and private variables from the correct $env module. - Configure fallback for client-side routes in an SPA. - Check the health check and startup time before routing live traffic. - Store persistent data and user files on persistent disks or cloud storage. ## Frequently asked questions ### How do I configure Svelte and SvelteKit deployments? Use a compatible adapter such as adapter-node to deploy your Svelte or SvelteKit app.