sailfork / t3code-github / .repos/ alchemy-effect/ examples/ neon-website-vite/ alchemy.run.ts

import * as Neon from "@alchemy.run/neon";
import * as Alchemy from "alchemy";
import * as Effect from "effect/Effect";

export default Alchemy.Stack(
  "NeonWebsiteViteExample",
  { providers: Neon.providers(), state: Alchemy.localState() },
  Effect.gen(function* () {
    const site = yield* Neon.Website.Vite("Vite", {
      assets: { notFoundHandling: "single-page-application" },
    });

    return { url: site.url };
  }),
);