mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-21 17:57:44 +02:00
18 lines
559 B
TypeScript
18 lines
559 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 AcmeIssueZeroSslWorker from "./issue-worker-zerossl.ts";
|
|
|
|
export default Alchemy.Stack(
|
|
"AcmeIssueZeroSslStack",
|
|
{
|
|
providers: Layer.mergeAll(Cloudflare.providers(), ACME.providers()),
|
|
state: Cloudflare.state(),
|
|
},
|
|
Effect.gen(function* () {
|
|
const worker = yield* AcmeIssueZeroSslWorker;
|
|
return { url: worker.url.as<string>() };
|
|
}),
|
|
);
|