.repos/alchemy-effect/examples/aws-website-react-router
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
AWS Website: React Router#
Deploys a React Router v7 (framework mode)
app to AWS with AWS.Website.ReactRouter — no adapter setup and no
CloudFormation templates. The SSR server runs on a streaming Lambda
Function URL; client assets deploy to S3 behind a CloudFront
distribution.
app/routes/home.tsxis server-rendered in the Lambda on every request; its loader reads theGREETINGenvironment value declared inalchemy.run.tsfromprocess.env.app/components/Card.tsxis a React component styled with Tailwind utilities (wired through@tailwindcss/viteinvite.config.ts).- Everything under
public/deploys as static assets.
The integration package must be installed in the project (it is loaded dynamically at deploy time):
bun add -d @alchemy.run/frontend-frameworks
Deploy#
bun run deploy
Unchanged sources skip the React Router build entirely on subsequent
deploys — the input files are content-hashed (scoped by memo.include).
Destroy#
bun run destroy