SvelteKit

SvelteKit. From build to live website.

Publish fast SvelteKit sites and applications with server logic. Choose an adapter for your use case and let Layero host the build.

Deployment overviewGit / CLI
SvelteKit
package.jsonnpm run build
PublishLayeroHTTPS · Git · CLI

What Layero does for your SvelteKit project

Static builds

adapter-static produces HTML pages and assets. This works for documentation, landing pages and routes that can be rendered at build time.

Server-side code

Server routes and request-time rendering need a server adapter. adapter-node builds a Node server; configure a runtime and a start command to host it.

Predictable publishing

Pin the adapter and dependencies in your project. For static output, check route prerendering; for an SPA, check the fallback page and direct navigation.

Updates through Git

Connect a repository and publish updates from your usual workflow. Builds and their results are available in the project dashboard.

SvelteKit capabilities on Layero

CapabilityHow it works
adapter-staticPrerendered HTML → build
adapter-nodeNode runtime → node build
PrerenderBuild-time rendering
SPA fallbackClient-side routes
Server actionsServer adapter + runtime
Domain and HTTPSConfigured in the project dashboard

How to publish your project

Prepare your project

Choose adapter-static for prebuilt pages or adapter-node for a server application. Configure it in svelte.config and verify npm run build.

Start deployment

Deploy from the project folder. For static output, use the adapter output directory; for a Node build, verify the runtime and node build start command.

npx layero@latest deploy

Check the result

Test dynamic routes and forms. Server handlers must run on a server; serving static files alone does not execute them.

Where it fits

Where it fits

  • Blogs and content sites
  • Applications with forms
  • Sites with dynamic routes

Your workflow on Layero

  • Publish from Git or the CLI
  • Builds and logs in the project dashboard
  • Domain and environment variables
What to configure before launch

The adapter determines the deployment format. Server handlers require a runtime; static sites need prerender and fallback configuration.

FAQ

Can I keep adapter-auto?
Choose an explicit adapter for a reproducible build. adapter-auto detects environments it supports; it does not define your Layero configuration.
Where should user data live?
Use a database or external API. Build-generated files are not persistent storage for user data.
Can I connect my own domain?
Yes. Add the domain in the project dashboard and configure DNS using the instructions. See the pricing page for plan requirements and available features.
How do I update a published project?
Push changes to the connected Git repository or deploy again from the project folder. The build result and logs appear in the dashboard.

Publish your SvelteKit project on Layero

Start with a folder of code or import a repository in the Layero dashboard.