mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-09 20:01:15 +02:00
|
|
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| alchemy.run.ts | ||
| index.html | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
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. Foldkit apps are client-only
Vite projects, 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 HMR and devtools
wiring work unchanged — and no AWS resources are created.
Destroy
bun run destroy