1import * as Alchemy from "alchemy";
2import * as Fly from "alchemy/Fly";
3import * as Effect from "effect/Effect";
4
5export default Alchemy.Stack(
6 "FlyWebsiteVinextExample",
7 {
8 providers: Fly.providers(),
9 state: Alchemy.localState(),
10 },
11 Effect.gen(function* () {
12 const site = yield* Fly.Website.Vinext("Vinext", {
13 memo: {
14 lockfile: true,
15 include: [
16 "app/**",
17 "public/**",
18 "package.json",
19 "vite.config.ts",
20 "tsconfig.json",
21 ],
22 },
23 env: {
24 GREETING: "Hello from vinext on Fly!",
25 },
26 });
27
28 return {
29 url: site.url,
30 };
31 }),
32);