What is your developer-dependent CMS actually costing you? Calculate your costs and get a full report
What is your developer-dependent CMS actually costing you? Calculate your costs and get a full report
Deployment
Deploy the Agility SvelteKit starter to AWS — Amplify Hosting, SST, or adapter-node on App Runner/EC2, plus rebuilding on publish.
Legacy — SvelteKit docs are no longer actively maintained. The SvelteKit starter targets SvelteKit 2; SvelteKit 3 shipped in October 2026. See why we recommend Next.js and .NET. If you need SvelteKit, let us know.
AWS gives you several ways to run the SvelteKit starter. Pick based on how much infrastructure you want to own. In every case, the starter's config comes from $env/static/private and is inlined at build time — set the Agility variables wherever the build runs:
| Variable | Value |
|---|---|
AGILITY_GUID | Your instance GUID (Settings → API Keys) |
AGILITY_API_FETCH_KEY | Fetch (live) API key |
AGILITY_API_PREVIEW_KEY | Preview API key |
AGILITY_SITEMAP | e.g. website |
AGILITY_LOCALES | e.g. en-us |
Amplify Hosting supports SvelteKit SSR deployments from a Git repo:
npm run build) and add the environment variables above.SST deploys SvelteKit to Lambda + CloudFront with its SvelteKitSite construct (svelte-kit-sst works with the starter's adapter-auto). Best when the site is part of a larger AWS stack you define as code. Rebuilds are sst deploy runs — trigger your CI from an Agility publish webhook.
Run SvelteKit as a plain Node server on App Runner, Elastic Beanstalk, ECS, or EC2:
npm i -D @sveltejs/adapter-node@5
The starter uses SvelteKit 2.
@sveltejs/adapter-node6 and later require SvelteKit 3, so install version 5 until you upgrade the starter to SvelteKit 3.
// svelte.config.js
import adapter from '@sveltejs/adapter-node';
export default { kit: { adapter: adapter() } };
npm run build
node build # serves on PORT (default 3000)
Put CloudFront in front for caching/TLS. Rebuild-on-publish is your CI pipeline re-running on an Agility webhook.
| You want | Choose |
|---|---|
| Managed Git-push deploys | Amplify Hosting |
| Serverless + infrastructure-as-code | SST |
| Full control / existing containers | adapter-node on App Runner/ECS/EC2 |
The starter prerenders every page at build time (see Routing & Sitemaps), so published content appears after the next build — wire Agility's publish webhook into whichever build trigger your option uses. The preview toggle is for local dev; production serves published content.