t3-code-android-nightly/.repos/alchemy-effect/packages/alchemy/test/Railway/fixtures/ping.ts
Julius Marminge 6f9cea00ae
chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 13:22:30 -07:00

24 lines
626 B
TypeScript

import { Function } from "@/Railway/Function.ts";
import * as Effect from "effect/Effect";
import * as HttpServerResponse from "effect/http/HttpServerResponse";
import { Partition, Site } from "./suite-env.ts";
export { Site };
/**
* Effect-native Railway.Function: bundled into a single file and
* deployed as a canvas Function. No Docker. No registry.
*/
export default class Ping extends Function<Ping>()(
"Ping",
{
project: Site,
environment: Partition,
main: import.meta.url,
},
Effect.gen(function* () {
return {
fetch: Effect.succeed(HttpServerResponse.text("ok")),
};
}),
) {}