Skip to content

Conversation

@rayangler
Copy link
Contributor

@rayangler rayangler commented Jul 21, 2025

Proposed changes

With the move to Bump.sh for rendering OpenAPI spec content on the MongoDB docs site, it makes sense to update the preview script to generate previews through Bump as well. Unlike Redoc, Bump doesn't have a client-side way to generate previews (that I know of at the moment), and instead relies on using their API. To avoid needing to make many unnecessary calls to Bump's API, the generated HTML will now create individual temporary Bump preview links on click. A serverless Netlify function maintained by DOP will wrap the calls to Bump's API to minimize CORS issues.

Here's an example of it in action using local dev data:

Screen.Recording.2025-07-21.at.4.52.57.PM.mov

Jira ticket: DOP-5830

@rayangler rayangler marked this pull request as ready for review July 21, 2025 20:56
@rayangler rayangler requested a review from a team as a code owner July 21, 2025 20:56
Copy link
Collaborator

@andreaangiolillo andreaangiolillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rayangler rayangler merged commit 0a5bf41 into main Jul 24, 2025
5 checks passed
@rayangler rayangler deleted the DOP-5830-bump-preview branch July 24, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants