-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
fa973ed
wip
LekoArts bbf8ece
update lock fiel
LekoArts fe66c81
working error codes in json
LekoArts 1f6814c
get the overlay correctly working (albeit with a little hack :D)
LekoArts 862e9ca
add note for reloading page
LekoArts d87f716
fix build-html ts issue
LekoArts a8fb25e
fix snapshot test
LekoArts 08c3f66
use error message inside react template itself instead of hacky solution
LekoArts 87ed4fc
fix unit test
LekoArts 4ce68fa
cypress tests
LekoArts a256448
update snapshot
LekoArts 52fdd95
use status(200)
LekoArts 051171b
404 with cypress options
LekoArts 0a87b43
try some stuff
LekoArts 938a29f
rename code to sourceContent
LekoArts e8af19e
remove unused stuff
LekoArts 5f7d19e
use custom structured error for failure on dev-404-page
LekoArts e364f3a
Merge remote-tracking branch 'upstream/master' into dev-ssr-new-overlay
81b4885
revert some e2e changes
LekoArts a7ba407
revert some failOnStatusCode changes
LekoArts 2143440
try catch for clientOnlyShell
LekoArts daf954c
minimal html for error outside of module scope
LekoArts 9edb3f9
account for disabled JS
LekoArts 3b00bde
updates snapshot
LekoArts 7615e6c
use snapshot serializer
LekoArts 4ecfd3c
update snapshot
pieh 9eb5a5b
make stripIndent actually strip intendent
pieh 4430c5f
maybe correct snapshot now?
pieh 8826dc7
colors are bad
pieh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
e2e-tests/development-runtime/cypress/integration/page-not-found/404.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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