-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
feat(gatsby): New overlay for DEV_SSR #31061
Changes from 20 commits
fa973ed
bbf8ece
fe66c81
1f6814c
862e9ca
d87f716
a8fb25e
08c3f66
87ed4fc
4ce68fa
a256448
52fdd95
051171b
0a87b43
938a29f
e8af19e
5f7d19e
e364f3a
81b4885
a7ba407
2143440
daf954c
9edb3f9
3b00bde
7615e6c
4ecfd3c
9eb5a5b
4430c5f
8826dc7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ describe(`SSR`, () => { | |
const pageUrl = `http://localhost:8000/bad-page/` | ||
// Poll until the new page is bundled (so starts returning a non-404 status). | ||
const rawDevHtml = await fetchUntil(pageUrl, res => { | ||
return res.status === 500 | ||
return res | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't explicitly send |
||
}).then(res => res.text()) | ||
expect(rawDevHtml).toMatchSnapshot() | ||
await fs.remove(dest) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -549,18 +549,19 @@ const errors = { | |
docsUrl: `https://www.gatsbyjs.com/docs/reference/gatsby-cli#new`, | ||
}, | ||
"11614": { | ||
text: ({ | ||
path, | ||
filePath, | ||
line, | ||
column, | ||
}): string => `The path "${path}" errored during SSR. | ||
|
||
Edit its component ${filePath}${ | ||
line ? `:${line}:${column}` : `` | ||
} to resolve the error.`, | ||
text: (context): string => | ||
stripIndent(`The path "${context.path}" errored during SSR. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since it's a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. above comment addressed in 9eb5a5b |
||
Edit its component ${context.filePath}${ | ||
context.line ? `:${context.line}:${context.column}` : `` | ||
} to resolve the error.`), | ||
level: Level.WARNING, | ||
docsUrl: `https://gatsby.dev/debug-html`, | ||
}, | ||
"11615": { | ||
text: (context): string => | ||
stripIndent(`There was an error while trying to load dev-404-page: | ||
${context.sourceMessage}`), | ||
level: Level.ERROR, | ||
category: ErrorCategory.SYSTEM, | ||
}, | ||
// Watchdog | ||
"11701": { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left these in as in the future when we'd send
404
for the not found page those would fail