oxidecomputer / oxidecomputer/console
Generate HTML error pages for Nexus
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 228
- Forks
- 22
- Avg merge
- 19h 42m
- Merged PRs (30d)
- 32
Description
Our end of https://github.com/oxidecomputer/omicron/issues/3333
Vite doc on multiple entry points: https://vitejs.dev/guide/build.html#multi-page-app. We would add more entries here:
Definitely a 404 page and a generic something went wrong page, not sure if we need more than that. It would be cool if we could inline the relevant CSS right in the HTML, but there will always be fonts to download, so the page is never going to be totally free of additional dependencies. So making everything be inline is a secondary design goal. But definitely no JS!
They would be automatically included in the console assets tarball, which takes everything generated by Vite and sends it over the fence, so literally all that's required in this repo is making sure the files get generated. On the Nexus side we have to figure out how to serve them when appropriate.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with vite.config.ts at lines 25-29 and the linked Vite multi-page app guidance. Add entry points for a 404 page and a generic error page with no JavaScript; confirm Vite generates them and that they are included in the console assets tarball.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vite
- Domain
- build-system, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100