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

Add invariant with debug information when failing to load static file #38075

Merged
merged 1 commit into from
Jun 27, 2022

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Jun 27, 2022

This adds an invariant with a proper error stack when we fail to load a static file that is expected to be present. An integration test has been added to ensure the invariant is triggered correctly.

Bug

  • Related issues linked using fixes #number
  • Integration tests added
  • Errors have helpful link attached, see contributing.md

x-ref: slack thread

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team. type: next labels Jun 27, 2022
@ijjk ijjk marked this pull request as ready for review June 27, 2022 18:57
@ijjk ijjk merged commit e3fb62b into vercel:canary Jun 27, 2022
@ijjk ijjk deleted the add/read-file-invariant branch June 27, 2022 19:15
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants