| 1 | import * as Cloudflare from "@/Cloudflare"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | |
| 4 | export const applications = (maxInstances = 2, name?: string) => |
| 5 | Effect.gen(function* () { |
| 6 | const owned = yield* Cloudflare.Container("CachedIdentity", { |
| 7 | name, |
| 8 | image: "mendhak/http-https-echo:41", |
| 9 | maxInstances, |
| 10 | }).Application; |
| 11 | const other = yield* Cloudflare.Container("OtherIdentity", { |
| 12 | image: "mendhak/http-https-echo:41", |
| 13 | maxInstances: 3, |
| 14 | }).Application; |
| 15 | return { owned, other }; |
| 16 | }); |