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.
npm run buildWhat 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
| Capability | How it works |
|---|---|
| adapter-static | Prerendered HTML → build |
| adapter-node | Node runtime → node build |
| Prerender | Build-time rendering |
| SPA fallback | Client-side routes |
| Server actions | Server adapter + runtime |
| Domain and HTTPS | Configured 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 deployCheck 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
The adapter determines the deployment format. Server handlers require a runtime; static sites need prerender and fallback configuration.
FAQ
Can I keep adapter-auto?
Where should user data live?
Can I connect my own domain?
How do I update a published project?
Publish your SvelteKit project on Layero
Start with a folder of code or import a repository in the Layero dashboard.