This change pulls part of the Noirlab press release API onto the Next server, instead of building the pages from client requests. This has a few benefits:
Press releases do not have any loader/latency after page load, making them indistinguishable from content we host
Can use metadata API's to add page titles, descriptions, and article images
Content does not need to be re-fetched, net decrease in times we hit the Noirlab API
There are a few tagalong improvements too:
OpenAPI client for Noirlab releases with typings and schema validation
Sanitize HTML content before rendering
A couple markup changes
E2E test for news releases
This should be pretty straightforward to test, just load a press release and validate it against the production site.
This change pulls part of the Noirlab press release API onto the Next server, instead of building the pages from client requests. This has a few benefits:
There are a few tagalong improvements too:
This should be pretty straightforward to test, just load a press release and validate it against the production site.