t3-code-android-nightly/.repos/alchemy-effect/examples/aws-rds/alchemy.run.ts
Julius Marminge bd851c0203
chore: add Alchemy reference repo subtree (#2918)
Co-authored-by: codex <codex@users.noreply.github.com>
2026-06-03 00:08:31 +00:00

17 lines
433 B
TypeScript

import * as Alchemy from "alchemy";
import * as AWS from "alchemy/AWS";
import * as Effect from "effect/Effect";
import ServiceFunction from "./src/ServiceFunction.ts";
const aws = AWS.providers();
export default Alchemy.Stack(
"AwsRdsExample",
{ providers: aws, state: Alchemy.localState() },
Effect.gen(function* () {
const service = yield* ServiceFunction;
return {
url: service.functionUrl,
};
}),
);