Skip to main content
ProductsDesktop toolsTASTECADDrawing reviewTASTEFILESFile managementTASTEFTPFile transferTASTESSHRemote workspaceTASTEZIPCompression and extractionTASTEWINMFile managementDeveloper toolsTASTECODERust integrated development environmentTASTESTUDIOIntegrated development and test environmentTASTEETLData integration (ETL)ServersTASTEREMOTERemote desktop serverTASTEGEOGeospatial serverTASTEMAILMail workspaceInvestingTASTESTOCKStock auto-trading desktop appGet startedDownloadsDocumentationBuyAll products
Marketplace
News
TechNewsToday's dev newsDeveloper docsProgramming languagesRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWeb front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngularServer frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressApp & desktop frameworksTauriFlutterReact NativeElectronAlgorithmsAlgorithm basicsCore algorithmsAdvanced algorithmsPractical algorithms
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcaseCommunity guide
Work with usTech transferWebsite buildDesktop app buildRelease and payment pipelineSales partnerContact
ServicesRemote desktopCustom installer packages
TASTEDEV
Products

Desktop tools

TASTECADComplex drawings, opened with easeTASTEFILESJust the files you need, as fast as possibleTASTEFTPThe tidiest path for your filesTASTESSHA stronger link between you and your serversTASTEZIPPack faster, unpack saferTASTEWINMA keyboard-first file manager with two panes

Developer tools

TASTECODEEdit, build, debug and test Rust apps in one windowTASTESTUDIOFrom editing to remote tests and approved AI fixesTASTEETLMove data while you watch the values

Servers

TASTEREMOTEA remote desktop you run on your own serverTASTEGEORebuilding a GeoServer-compatible geospatial server in RustTASTEMAILTake back control of your email

Investing

TASTESTOCKStock auto-trading that follows the rules you set: when, and what

Get started

DownloadsLatest builds of every productDocsHow to use each productBuySubscriptions and perpetual licencesAll productsEvery product at a glance
All products
MarketplaceNews
Tech

News

Today's dev newsOfficial announcements on languages, frameworks, GitHub and AIDeveloper docsGuides to languages, frameworks and algorithms

Programming languages

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Web front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngular
Server frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
App & desktop frameworksTauriFlutterReact NativeElectron

Algorithms

Algorithm basicsComplexity analysis · Sorting · Searching · Basic data structures · Trees and heapsCore algorithmsGraph traversal · Shortest paths & minimum spanning trees · Dynamic programming · Greedy algorithms · Divide and conquer · BacktrackingAdvanced algorithmsString algorithms · Math and number theory · Bit manipulation · Segment trees · Union-findPractical algorithmsCoding interview strategy · LRU cache · Rate limiting · Consistent hashing
All development docs
Community
ProjectsDiscover builders and their workDevelopment logsDecisions and lessons learnedPromptsReusable instructionsAI tool issuesProblems and workarounds for Claude, Codex, GeminiShowcaseFinished resultsCommunity guideHow we build in the open
Work with us
Tech transferNative apps in Rust and eguiWebsite build10 languages, accounts, docs and downloadsDesktop app buildRust and egui, no WebViewRelease and payment pipelineSigning, MSI, deb, rpm, AppImage, hashesSales partnerRecommend us and earn 30%ContactBuilds, partnerships and investment
Services
Remote desktopReach your computer from a browserCustom installer packagesOnly the features you need, settings preloaded
Buy
EN
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Log in
Log in
TASTEDEV

From small tools to better development.

support@tastedev.netSupport TASTEDEV
ProductsProduct lineupBuyDocsDownloadsMarketplaceSupport
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcase
PoliciesAbout usPrivacy policyTerms of serviceSubscription termsRefund policyCommunity guidelines
AccountLog inSign up
Visitors
Today
Yesterday
Total views
Company
GXSOFT
Representative
CHOI YOUNG GU
Business registration number
853-44-00368
Address
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Phone
+82-10-4404-1523
Email
whitecalvin@tastedev.net
Privacy officer
CHOI YOUNG GU

© 2026 TASTEDEVProduct information is based on verified development sources.Released · improving

SvelteKit docs
SvelteKit
Getting Started with SvelteKitProject StructureCore ConceptsData and StateTestingBuilding and Deployment
Discussions

SvelteKit guide · 6/6

Building and Deployment

A SvelteKit app is built with vite build, and an adapter turns the output into something your target platform can run. The same code can be deployed to a Node.js server, a static host or a serverless platform just by switching adapters.

Build and preview

npm run build     # vite build: build the app and run the adapter
npm run preview   # check the build locally (http://localhost:4173 by default)

npm run preview uses Vite's preview server to check the result; it is not meant to serve production traffic. How the app actually runs in production is decided by the adapter.

Choosing an adapter

The adapter is set in the sveltekit() options in vite.config.ts. New projects start with adapter-auto, which detects supported environments at build time, but once you know where you are deploying it is better to install and configure that adapter explicitly.

AdapterTarget
@sveltejs/adapter-nodeYour own Node.js server or a Docker container
@sveltejs/adapter-staticStatic hosting, with every page prerendered
@sveltejs/adapter-vercelVercel
@sveltejs/adapter-netlifyNetlify
@sveltejs/adapter-cloudflareCloudflare Workers and Pages
@sveltejs/adapter-bunBun servers

Community adapters cover many other platforms as well.

Deploying to a Node.js server

npm install -D @sveltejs/adapter-node
// vite.config.ts
import adapter from '@sveltejs/adapter-node';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [
    sveltekit({
      adapter: adapter(),
      paths: { origin: 'https://example.com' }
    })
  ]
});

npm run build writes a server to the build folder, which you start with node build. It listens on 0.0.0.0:3000 by default; change that with the PORT and HOST environment variables. paths.origin is the public URL of your app and is used for CSRF checks and prerendering. Packages in devDependencies are bundled into the output, while packages in dependencies are loaded from node_modules at runtime, so the server needs the build folder, package.json and production dependencies. .env files are not loaded automatically in production; if you rely on one, start the app with node --env-file=.env build.

Packaging with Docker

FROM node:lts-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build && npm prune --omit=dev

FROM node:lts-alpine
WORKDIR /app
COPY --from=build /app/build ./build
COPY --from=build /app/node_modules ./node_modules
COPY package.json .
ENV NODE_ENV=production
EXPOSE 3000
CMD ["node", "build"]

The multi-stage build keeps compilers and dev tooling out of the final image, which contains only the built server and its runtime dependencies.

Deploying as a static site

For hosts that only serve files, such as GitHub Pages, a plain web server or a CDN, use adapter-static. Every page must be generated as HTML at build time, so enable prerender in the root layout.

// sveltekit() options in vite.config.ts
import adapter from '@sveltejs/adapter-static';

sveltekit({
  adapter: adapter({
    pages: 'build',
    assets: 'build',
    fallback: undefined,
    precompress: false,
    strict: true
  })
});

// src/routes/+layout.ts
// export const prerender = true;

With this approach, features that need a server on every request, such as form actions and server loads at request time, are not available. To ship an app that cannot be prerendered as an SPA, set fallback: '200.html', but this hurts performance and SEO, so use it only when you really need it.

Before you deploy

  • Make sure npm run check and your tests pass.
  • Read secrets only through $app/env/private and supply them as environment variables in production.
  • If your Node server runs behind a reverse proxy, review the proxy header settings in the adapter-node docs.
  • Once your target is known, replace adapter-auto with the specific adapter.

Summary

  • npm run build builds the app, and the adapter produces the deployable output.
  • Use adapter-node with node build for Node servers, and adapter-static with prerendering for static hosts.
  • Dedicated adapters exist for platforms such as Vercel, Netlify and Cloudflare.

For more detail, see the official documentation:

  • SvelteKit documentation
  • Building your app
  • Adapters
  • Node servers
  • Static site generation
Questions about this chapter?
Previous chapterTesting

0 comments

Top commentsNewest first

Sign in · Sign in to leave a comment.