mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-11 12:51:15 +02:00
|
|
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| alchemy.run.ts | ||
| index.html | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
Cloudflare Website: Foldkit
Deploys a Foldkit app to Cloudflare Workers with
Cloudflare.Website.Foldkit — no main entry, build command, or
Wrangler configuration. Foldkit apps are client-only Vite projects:
Alchemy runs Vite with the project's own vite.config.ts and serves
the client build as static assets — no Worker code runs at request
time.
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(SPA fallback) by default, so deep links boot the app and Foldkit routes on the client.
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.
Destroy
bun run destroy