mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-10 04:11:15 +02:00
27 lines
720 B
TypeScript
27 lines
720 B
TypeScript
import * as Alchemy from "alchemy";
|
|
import * as Hetzner from "alchemy/Hetzner";
|
|
import * as Effect from "effect/Effect";
|
|
|
|
export default Alchemy.Stack(
|
|
"HetznerWebsiteTanStackStartExample",
|
|
{
|
|
providers: Hetzner.providers(),
|
|
state: Alchemy.localState(),
|
|
},
|
|
Effect.gen(function* () {
|
|
const site = yield* Hetzner.Website.TanStackStart("Website", {
|
|
// Only hash the files that affect the build, so unchanged sources
|
|
// skip the Vite build (and the deploy) entirely.
|
|
memo: {
|
|
include: ["src/**", "package.json", "vite.config.ts"],
|
|
},
|
|
env: {
|
|
GREETING: "Hello from TanStack Start on Hetzner!",
|
|
},
|
|
});
|
|
|
|
return {
|
|
url: site.url,
|
|
};
|
|
}),
|
|
);
|