Skip to content
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

[Draft] Fail build process upon @Inject interpolation failure (in production) #9352

Closed
wants to merge 2 commits into from

Conversation

a-hariti
Copy link
Collaborator

@a-hariti a-hariti commented Mar 5, 2024

Pre-merge checklist

If you work at Sentry, you're able to merge your own PR without review, but please don't unless there's a good reason.

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs
  • PR was reviewed and approved by a member of the Sentry docs team

Description of changes

This prevents showing empty code blocks when @inject directives interpolation fails.

An error is logged to the console in development mode, and the build fails in prod.

Closes #3004

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Extra resources

@a-hariti a-hariti requested a review from bruno-garcia March 5, 2024 19:37
Copy link

vercel bot commented Mar 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ❌ Failed (Inspect) Mar 5, 2024 7:40pm

Copy link

codecov bot commented Mar 5, 2024

Bundle Report

Changes will increase total bundle size by 250 bytes ⬆️

Bundle name Size Change
sentry-docs-server 5.94MB 259 bytes ⬆️
sentry-docs-edge-server 617.58kB 3 bytes ⬇️
sentry-docs-client 5.52MB 6 bytes ⬇️

@a-hariti a-hariti removed the request for review from bruno-garcia March 5, 2024 19:43
@a-hariti a-hariti changed the title Fail build process upon @Inject interpolation failure (in production) [Draft] Fail build process upon @Inject interpolation failure (in production) Mar 5, 2024
@a-hariti a-hariti closed this Mar 5, 2024
@a-hariti a-hariti deleted the fail-on-injection-failure branch March 5, 2024 20:22
@github-actions github-actions bot locked and limited conversation to collaborators Mar 22, 2024
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.

Building docs should break if version can't be resolved.
1 participant