Skip to content
Source
Sign inSign up
Open History to see the last commit

alchemy.run.ts

27 lines701 Bytes

1import * as Fly from "@alchemy.run/fly";
2import * as Alchemy from "alchemy";
3import * as Effect from "effect/Effect";
4​
5export default Alchemy.Stack(
6 "FlyWebsiteTanStackStartExample",
7 {
8 providers: Fly.providers(),
9 state: Alchemy.localState(),
10 },
11 Effect.gen(function* () {
12 const site = yield* Fly.Website.TanStackStart("Website", {
13 // Only hash the files that affect the build, so unchanged sources
14 // skip the Vite build (and the deploy) entirely.
15 memo: {
16 include: ["src/**", "package.json", "vite.config.ts"],
17 },
18 env: {
19 GREETING: "Hello from TanStack Start on Fly!",
20 },
21 });
22​
23 return {
24 url: site.url,
25 };
26 }),
27);