.repos/alchemy-effect/examples/aws-website-foldkit
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
AWS Website: Foldkit#
Deploys a Foldkit app to AWS with
AWS.Website.Foldkit — the client build in S3 behind a CloudFront
distribution, no CloudFormation templates. This integration supports
client-only Foldkit apps, so the deployment is assets-only and never
creates a server function.
src/main.tsholds the Elm-architecture model/update/view; the page renders acardview function (src/components/Card.ts) written in plain TypeScript withfoldkit/html.- Tailwind CSS v4 is wired through
@tailwindcss/vitein the project's ownvite.config.ts, alongside@foldkit/vite-plugin. - Unmatched paths serve
index.html(spadefaults on), so deep links boot the app and Foldkit routes on the client.
The integration package must be installed in the project (it is loaded dynamically at deploy time):
bun add -d @alchemy.run/frontend-frameworks
Deploy#
bun install
bun run deploy
Unchanged sources skip the Vite build entirely on subsequent deploys —
the input files are content-hashed (scoped by memo.include).
Local development#
bun run dev
alchemy dev runs Vite's own dev server — Foldkit's live reload and devtools
wiring work unchanged — and no AWS resources are created.
Destroy#
bun run destroy