| 1 | import * as Alchemy from "alchemy"; |
| 2 | import * as Neon from "alchemy/Neon"; |
| 3 | import * as Effect from "effect/Effect"; |
| 4 | |
| 5 | export default Alchemy.Stack( |
| 6 | "NeonWebsiteAstroExample", |
| 7 | { providers: Neon.providers(), state: Alchemy.localState() }, |
| 8 | Effect.gen(function* () { |
| 9 | const site = yield* Neon.Website.Astro("Astro", { |
| 10 | env: { GREETING: "Hello from Astro on Neon!" }, |
| 11 | }); |
| 12 | |
| 13 | const staticSite = yield* Neon.Website.Astro("AstroStatic", { |
| 14 | astro: { |
| 15 | output: "static", |
| 16 | srcDir: "./static-src", |
| 17 | outDir: "./dist-static", |
| 18 | }, |
| 19 | }); |
| 20 | |
| 21 | return { url: site.url, staticUrl: staticSite.url }; |
| 22 | }), |
| 23 | ); |