mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-10 12:21:16 +02:00
|
|
||
|---|---|---|
| .. | ||
| app | ||
| public | ||
| test | ||
| .gitignore | ||
| alchemy.run.ts | ||
| package.json | ||
| react-router.config.ts | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
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