← modules / framework

React + Vite

framework-react-vite

React 19 single-page app on Vite with React Router, a status page and an /api proxy

add it to a devstack project

npx create-devstack-app add framework-react-vite

requires

Environment

  • API_URL

    Where the dev and preview servers proxy /api to

  • VITE_API_URL

    Where the browser calls the API in production (split origin); unset uses /api