mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-16 15:27:47 +02:00
18 lines
530 B
TypeScript
18 lines
530 B
TypeScript
import * as ACME from "@/ACME";
|
|
import * as Cloudflare from "@/Cloudflare";
|
|
import * as Alchemy from "@/index";
|
|
import * as Effect from "effect/Effect";
|
|
import * as Layer from "effect/Layer";
|
|
import AcmeIssueWorker from "./issue-worker.ts";
|
|
|
|
export default Alchemy.Stack(
|
|
"AcmeIssueStack",
|
|
{
|
|
providers: Layer.mergeAll(Cloudflare.providers(), ACME.providers()),
|
|
state: Cloudflare.state(),
|
|
},
|
|
Effect.gen(function* () {
|
|
const worker = yield* AcmeIssueWorker;
|
|
return { url: worker.url.as<string>() };
|
|
}),
|
|
);
|