t3-code-android-nightly/.repos/alchemy-effect/examples/stripe-billing/alchemy.run.ts
Julius Marminge e3c85ead63
chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-17 23:21:25 -07:00

20 lines
532 B
TypeScript

import * as Alchemy from "alchemy";
import * as Cloudflare from "alchemy/Cloudflare";
import * as Stripe from "alchemy/Stripe";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import Api from "./src/Api.ts";
export default Alchemy.Stack(
"StripeBillingExample",
{
providers: Layer.mergeAll(Cloudflare.providers(), Stripe.providers()),
state: Alchemy.localState(),
},
Effect.gen(function* () {
const api = yield* Api;
return {
url: api.url.as<string>(),
};
}),
);