The browser UI for a Haste Health tenant, built with Vite and React Router.
Run these from this directory:
| Script | What it does |
|---|---|
pnpm dev |
Dev server on port 3001 (strictPort, so it fails rather than moving) |
pnpm build |
Production build into dist/ |
pnpm preview |
Serve the build locally |
The components it renders come from @haste-health/components, so build that
package first when working across both:
pnpm --filter @haste-health/components build
src/config.ts reads VITE_FHIR_BASE_URL and
VITE_CLIENT_ID, from import.meta.env at build time or from window at
runtime (which is how the Docker image is configured without a rebuild). The
client id defaults to admin-app, the OIDC client the server registers for this
app; its redirect target is the server's admin_app_redirect_uri setting.
The app is served from Cloudflare Workers as static assets (wrangler.jsonc,
routes on haste-admin.app). The GitHub workflow <Release> Admin App
(.github/workflows/release_admin_app.yml) builds and deploys it; it only runs
when started by hand from the Actions tab, with the branch or tag to build and
the two configuration values above as inputs. pnpm wrangler does the same from
a local checkout, using the .env values.
The user-facing guide is docs/guides/admin_app.mdx in the website package. Update it alongside changes to routes, sidebar entries or the Settings view.