Essential info about the app
Install dependencies:
npm install --legacy-peer-deps(this project was created before peer dependencies were enforced)
-
Rebuild styles as they change:
npm run watch:styles -
Rebuild code and serve all static files:
npm start -
Open localhost:5173 in your browser
Webpack v5 - slow and old, but it works Vite - good, using it now Parcel - fails to load images from css urls, fails to build JS at all
Run these before pushing to main
npm run lint:fixnpm run testStatic files are hosted on cloudflare pages
To deploy:
- Push a commit to the main branch
- Or merge a pull request into the main branch
The GitHub workflow will automatically build the static files and deploy them.
There is a regular check that ensures the site is showing an element rendered by react.
As a side effect, it ensures the static files are cached in an AU/NZ region.
https://oceania.grafana.net/a/grafana-synthetic-monitoring-app/checks
(ask if you need access)