The best way to control Claude Code, Codex and more from any computer or phone

main
md 46 lines 1.05 KB
Rendered Raw
1 # Fly Website: Foldkit
2
3 Deploys a [Foldkit](https://foldkit.dev) site to Fly with
4 `Fly.Website.Foldkit` — no adapter setup in the project config.
5
6 Hashed assets publish with a Fly Service that serves the SPA shell.
7 This example is a client-only Foldkit app, so the deploy is assets-only.
8
9 - `src/main.ts` holds the Elm-architecture model/update/view.
10 - `src/components/Card.ts` is a view function styled with Tailwind utilities.
11 - Unmatched paths serve `index.html` so deep links boot the app.
12
13 ```ts
14 const site = yield* Fly.Website.Foldkit("Foldkit");
15 ```
16
17 The integration package must be installed in the project (it is loaded
18 dynamically at deploy time):
19
20 ```sh
21 bun add -d @alchemy.run/frontend-frameworks
22 ```
23
24 ## Deploy
25
26 ```sh
27 bun run deploy
28 ```
29
30 Unchanged sources skip the build entirely on subsequent deploys — the
31 input files are content-hashed (scoped by `memo.include`).
32
33 ## Dev
34
35 ```sh
36 bun run dev
37 ```
38
39 `alchemy dev` runs the framework's own dev server (Foldkit's live reload included) and
40 no cloud resources are created.
41
42 ## Destroy
43
44 ```sh
45 bun run destroy
46 ```