@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 30 lines 804 Bytes
Raw
1 import * as AWS from "@alchemy.run/aws";
2 import * as Alchemy from "alchemy";
3 import * as Effect from "effect/Effect";
4
5 export default Alchemy.Stack(
6 "AwsWebsiteVinextExample",
7 {
8 providers: AWS.providers(),
9 state: AWS.state(),
10 },
11 Effect.gen(function* () {
12 const site = yield* AWS.Website.Vinext("Vinext", {
13 // Only hash the files that affect the build, so unchanged sources
14 // skip the vinext build (and the deploy) entirely.
15 memo: {
16 lockfile: true,
17 include: ["app/**", "public/**", "package.json", "vite.config.ts", "tsconfig.json"],
18 },
19 forceDestroy: true,
20 env: {
21 GREETING: "Hello from vinext on AWS!",
22 },
23 });
24
25 return {
26 url: site.url,
27 cacheBucketName: site.cacheBucket?.bucketName,
28 };
29 }),
30 );