fix(dev): proxy api during react development
This commit is contained in:
parent
b1d196e4ca
commit
b8e39348e8
11 changed files with 196 additions and 8 deletions
11
README.md
11
README.md
|
|
@ -18,7 +18,7 @@ This MVP uses Drizzle with Bun SQLite for local file-backed persistence.
|
|||
|
||||
## Scripts
|
||||
|
||||
- `bun run dev`: start the local development server.
|
||||
- `bun run dev`: start the local Vite development server with a Bun API proxy.
|
||||
- `bun run check`: run TypeScript checks.
|
||||
- `bun run test`: run Vitest.
|
||||
- `bun run test:unit`: run Vitest explicitly as the unit test stage.
|
||||
|
|
@ -63,10 +63,11 @@ can replace them without changing presentation components.
|
|||
|
||||
## Runtime Shape
|
||||
|
||||
The browser app is built with Vite and React. Production uses a small Bun HTTP
|
||||
server at `build/index.js` to serve the Vite `dist/` assets and JSON API routes.
|
||||
The current persistence runtime is Bun because the MVP SQLite driver is
|
||||
`bun:sqlite`.
|
||||
The browser app is built with Vite and React. Local development starts Vite for
|
||||
HMR and a loopback Bun API server for `/api/*` routes. Production uses a small
|
||||
Bun HTTP server at `build/index.js` to serve the Vite `dist/` assets and JSON
|
||||
API routes. The current persistence runtime is Bun because the MVP SQLite
|
||||
driver is `bun:sqlite`.
|
||||
|
||||
## Storybook
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue