1import * as Cloudflare from "@/Cloudflare/index.ts";
2import * as Effect from "effect/Effect";
3import * as HttpServerResponse from "effect/http/HttpServerResponse";
4
5export default class InternalWorker extends Cloudflare.Worker<InternalWorker>()(
6 "InternalWorker",
7 {
8 main: import.meta.url,
9 },
10 Effect.gen(function* () {
11 return {
12 fetch: Effect.gen(function* () {
13 return HttpServerResponse.text("Hello from InternalWorker", {
14 status: 200,
15 });
16 }),
17 };
18 }),
19) {}