TypeScript
---
title: Websites
description: Deploy Vite, Astro, Next.js, vinext, Nuxt, React Router, SvelteKit, TanStack Start, Waku, Octane, or any static build to AWS with first-class Website resources.
sidebar:
label: Overview
order: 1
---
Alchemy deploys frontends to AWS with a family of `AWS.Website`
resources. Each one builds your project programmatically and deploys
it as a serverless site — the SSR server on a
[Lambda Web Function](/aws/compute/web-functions), static assets in a
private S3 bucket, and a CloudFront
distribution whose edge router serves uploaded files from S3 and
forwards everything else to the server — with no AWS-specific
configuration: no CDK, no CloudFormation, no adapter setup. Your
framework's own config file (`astro.config.*`, `nuxt.config.ts`,
`vite.config.ts`, ...) loads natively; Alchemy layers its AWS
integration on top.
- [`Vite`](/aws/frontend/vite) — any client-only Vite project (React,
Vue, Solid, or a plain SPA): assets-only, no Lambda; your
`vite.config.*` loads natively.
- [`Foldkit`](/aws/frontend/foldkit) — Foldkit SPA, SSR, and prerendered apps.
- [`Astro`](/aws/frontend/astro) — Astro sites, server-rendered or
fully static; your `astro.config.*` loads natively.
- [`Nextjs`](/aws/frontend/nextjs) — Next.js apps on Next's own
standalone server, with ISR and image optimization through a shared S3
cache; your `next.config.*` is honored as-is.
- [`Vinext`](/aws/frontend/vinext) — vinext (Next.js API on Vite)
apps on a streaming Lambda; your `vite.config.ts` loads natively.
- [`Nuxt`](/aws/frontend/nuxt) — Nuxt apps built through nitro's
`node` preset; your `nuxt.config.ts` loads natively.
- [`ReactRouter`](/aws/frontend/react-router) — React Router v8 in
framework mode, built through your own `vite build`.
- [`SvelteKit`](/aws/frontend/sveltekit) — SvelteKit apps with a
wrangler-free in-memory AWS adapter; your `vite.config.ts` loads
natively.
- [`TanStackStart`](/aws/frontend/tanstack-start) — TanStack Start
(React or Solid), built through your own `vite build`.
- [`Waku`](/aws/frontend/waku) — Waku (React Server Components)
apps.
- [`Octane`](/aws/frontend/octane) — OctaneJS fullstack apps built
through your own `vite build` with the AWS marker adapter.
- [`StaticSite`](/aws/frontend/static-site) — any directory of files,
optionally produced by a build command, for static generators like
Zola and Hugo or pre-built SPAs.
- [`Router`](/aws/frontend/static-site#compose-sites-with-a-router) —
a shared CloudFront front door: one distribution serving several
sites (or a site plus an API), routed at the edge.
Every resource shares the same surface: `domain` (ACM certificate +
Route 53 records, or records on another
[DNS host](/infrastructure-as-code/dns-adapters)), server configuration (`timeout`, `env`,
`maxConcurrencyPerEnvironment`, `maxEnvironments`), `assets`, `edge`
customizations, and `invalidation`.
All builds are memoized by content-hashing the input files — an
unchanged project skips the build and deploy entirely. Under
`alchemy dev`, every resource runs the framework's own dev server
(native HMR) instead of deploying; `Alchemy.remote()` opts back into
the full live deployment.
## Serve from several Regions
List extra Regions to run the server in each of them behind one global
domain. CloudFront forwards to it, and each request reaches the nearest
Region:
```typescript
const site = yield* AWS.Website.Nuxt("Website", {
regions: ["us-east-1", "eu-west-1"],
});
```
The site's URL doesn't change when you add or remove Regions. `Nextjs`
and `Vinext` keep their data caches in the home Region, so a server in
another Region reaches back to it for cached pages; `regions` helps most
for sites without a server-side cache.
## Choose the server
The SSR server runs on a Lambda Web Function: your framework's own Node
server, serving many requests per environment and streaming each
response. Web Functions run in a subset of Regions. Elsewhere, set
`server: "function"` to run the server on a Lambda Function behind a
streaming Function URL:
```typescript
const site = yield* AWS.Website.Nuxt("Website", {
server: "function",
memorySize: 2048,
});
```
`memorySize`, `architecture`, and `runtime` apply only to
`server: "function"`; a Web Function has a fixed 2 GB, Arm64 and
Node.js 24.
## What's supported
| Framework | Resource | Guide |
| --- | --- | --- |
| React / Vite SPA | `Vite` | [React SPA](/aws/frontend/vite-spa) |
| Vue | `Vite` | [Vue](/aws/frontend/vue) |
| Foldkit | `Foldkit` | [Foldkit](/aws/frontend/foldkit) |
| TanStack Start (React & Solid) | `TanStackStart` | [TanStack Start](/aws/frontend/tanstack-start) |
| React Router | `ReactRouter` | [React Router](/aws/frontend/react-router) |
| Astro | `Astro` | [Astro](/aws/frontend/astro) |
| Next.js | `Nextjs` | [Next.js](/aws/frontend/nextjs) |
| vinext | `Vinext` | [vinext](/aws/frontend/vinext) |
| Nuxt | `Nuxt` | [Nuxt](/aws/frontend/nuxt) |
| SvelteKit | `SvelteKit` | [SvelteKit](/aws/frontend/sveltekit) |
| Waku | `Waku` | [Waku](/aws/frontend/waku) |
| OctaneJS (fullstack) | `Octane` | [Octane](/aws/frontend/octane) |
| Zola, Hugo, or any static generator | `StaticSite` | [Static sites](/aws/frontend/static-site) |
Every row is backed by a checked-in example or a live deploy test in
the Alchemy repository. The last row is deliberately open-ended:
`StaticSite` deploys any directory of files (running your build
command first if you give it one), so any generator works the same
way.
## How to choose
Use the resource named after your framework. `Astro`, `Nextjs`,
`Nuxt`, `ReactRouter`, `SvelteKit`, `TanStackStart`,
`Waku`, and `Octane` each drive their framework's own build and know
its output layout, config surface, and dev server.
Use `Vite` when the app is client-only and a single `vite build`
produces the whole thing — a React or Vue SPA, or any Vite project
with no server. It creates no Lambda.
Use `StaticSite` when the output is plain files from an arbitrary
build command that emits a directory (Zola, Hugo, or any other
generator without a dedicated resource).
Use `Router` when several sites (or a site plus an API) should share
one CloudFront distribution and one domain — distributions take
minutes to create, and each custom domain can only attach to one.
## Where next
- [The Vite resource](/aws/frontend/vite) — build model, env
inlining, SPA fallback, dev mode.
- [The StaticSite resource](/aws/frontend/static-site) — build
commands, SPA/404 handling, Router composition, invalidation.
- Framework guides:
[React SPA](/aws/frontend/vite-spa),
[Vue](/aws/frontend/vue),
[Foldkit](/aws/frontend/foldkit),
[TanStack Start](/aws/frontend/tanstack-start),
[React Router](/aws/frontend/react-router),
[Astro](/aws/frontend/astro),
[Next.js](/aws/frontend/nextjs),
[Nuxt](/aws/frontend/nuxt),
[SvelteKit](/aws/frontend/sveltekit),
[Waku](/aws/frontend/waku),
[Octane](/aws/frontend/octane).
- [Full-stack RPC + Drizzle](/aws/frontend/full-stack-tanstack-rpc-drizzle) —
a TanStack Start UI driving an Effect RPC Lambda over Aurora DSQL.
- [`StaticSite` reference](/providers/aws/website/staticsite) and
[`Router` reference](/providers/aws/website/router) — every prop
and attribute.