-
Notifications
You must be signed in to change notification settings - Fork 261
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
Remove every reference to .nuxt global option #11265
Remove every reference to .nuxt global option #11265
Conversation
aaf51fa
to
98843fc
Compare
* @param {*} context | ||
* @param {*} message | ||
*/ | ||
const errorRedirect = (context, message) => { |
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 have noticed that we are using something else for errors which is a leftover of Nuxt, instead of the fail-whale
path.
For some reason a simple action commit is not sufficient, so I've set a function wrapper and forced redirect after setting the error.
6e6664f
to
0544f61
Compare
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'm comfortable to approve if we know that this won't affect our CDN assets. Do we know if that's true here?
What do you refer to when you talk about CDN assets? |
As reviewed today, there are no distributed files used within the |
* Remove unused rehydratation plugin * Remove any reference to the .nuxt folders * Remove globalApp nuxt and any reference or use case to nuxt.error * Replace errors handling with existing fail-whale logic
Summary
Fixes #11260
Removed pretty much everything related to nuxt properties in the entry initialization, plus everything mentioned in the issue.
Replaced custom error handling from Nuxt dead code, with existing implementation.
Occurred changes and/or fixed issues
Technical notes summary
Areas or cases that should be tested
Areas which could experience regressions
Screenshot/Video
Fail-whale seems to load correctly still.
Kapture.2024-06-18.at.21.19.22.mp4
This was the previous error page, following the E2E tests
/public
, which redirected here:Now is instead fail-whale as well.
Checklist