t3-code-android-nightly/.repos/alchemy-effect/examples/fly-website-foldkit/alchemy.run.ts

24 lines
621 B
TypeScript

import * as Alchemy from "alchemy";
import * as Fly from "alchemy/Fly";
import * as Effect from "effect/Effect";
export default Alchemy.Stack(
"FlyWebsiteFoldkitExample",
{
providers: Fly.providers(),
state: Alchemy.localState(),
},
Effect.gen(function* () {
const site = yield* Fly.Website.Foldkit("Foldkit", {
// Only hash the files that affect the build, so unchanged sources
// skip the Vite build (and the deploy) entirely.
memo: {
include: ["src/**", "index.html", "package.json", "vite.config.ts"],
},
});
return {
url: site.url,
};
}),
);