| 1 | # AWS Website: TanStack Start |
| 2 | |
| 3 | Deploys a [TanStack Start](https://tanstack.com/start) app to AWS with |
| 4 | `AWS.Website.TanStackStart` — no adapter or deployment preset in |
| 5 | `vite.config.ts` and no CloudFormation templates. The SSR server runs on |
| 6 | a streaming Lambda Function URL; client assets deploy to S3 behind a |
| 7 | CloudFront distribution. |
| 8 | |
| 9 | - `src/routes/index.tsx` is server-rendered in the Lambda and reads the |
| 10 | `GREETING` environment value declared in `alchemy.run.ts` through a |
| 11 | server function. |
| 12 | - `src/components/Card.tsx` is a React component styled with Tailwind |
| 13 | utilities, wired through `@tailwindcss/vite` in the project's own |
| 14 | `vite.config.ts`. |
| 15 | |
| 16 | The integration package must be installed in the project (it is loaded |
| 17 | dynamically at deploy time): |
| 18 | |
| 19 | ```sh |
| 20 | bun add -d @alchemy.run/frontend-frameworks |
| 21 | ``` |
| 22 | |
| 23 | ## Deploy |
| 24 | |
| 25 | ```sh |
| 26 | bun run deploy |
| 27 | ``` |
| 28 | |
| 29 | Unchanged sources skip the Vite build entirely on subsequent deploys — |
| 30 | the input files are content-hashed (scoped by `memo.include`). |
| 31 | |
| 32 | ## Destroy |
| 33 | |
| 34 | ```sh |
| 35 | bun run destroy |
| 36 | ``` |