Skip to content

chore: embed build info in the html to reduce requests #6605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 21, 2023
Merged

Conversation

kylecarbs
Copy link
Member

This will reduce a request on every page load of Coder!

@kylecarbs kylecarbs requested a review from BrunoQuaresma March 14, 2023 15:51
@kylecarbs kylecarbs self-assigned this Mar 14, 2023
This will reduce a request on every page load of Coder!
Copy link
Member

@Emyrk Emyrk left a comment

Choose a reason for hiding this comment

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

Smart

try {
return JSON.parse(rawContent as string)
} catch (ex) {
// Ignore this and fetch as normal!
Copy link
Member

@Emyrk Emyrk Mar 15, 2023

Choose a reason for hiding this comment

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

Should you put some "unknown" value here? Or at least console.Log so we know something happened?

Ah we defer to api. Got it

@kylecarbs kylecarbs enabled auto-merge (squash) March 21, 2023 19:03
@kylecarbs kylecarbs merged commit 71eecb3 into main Mar 21, 2023
@kylecarbs kylecarbs deleted the buildinfoembed branch March 21, 2023 19:04
@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants