mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-09 11:51:15 +02:00
|
|
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| alchemy.run.ts | ||
| index.html | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
AWS Website: Vite
Deploys a Vite React SPA to AWS with
AWS.Website.Vite — static assets (the vite build output) in S3
behind a CloudFront distribution. No server function is created; the
page renders entirely in the browser.
src/main.tsxmounts the React app intoindex.html.- Tailwind CSS v4 is wired through
@tailwindcss/vitein the project's ownvite.config.ts, which Alchemy loads natively — plugins included. spadefaults on, so unmatched paths answer with the index page.
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 install
bun run deploy
Unchanged sources skip the Vite build entirely on subsequent deploys —
the input files are content-hashed (scoped by memo.include).
Local development
bun run dev
alchemy dev runs Vite's own dev server (HMR included) — no cloud
resources are created.
Destroy
bun run destroy