-
Notifications
You must be signed in to change notification settings - Fork 155
Fix fallback false #858
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
Fix fallback false #858
Conversation
commit: |
...metadata, | ||
})(req, res); | ||
} catch (e: any) { | ||
if (e.constructor.name === "NoFallbackError") { |
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.
could that cause issue with minification?
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'll need to test it. Not sure what we can use if we can't use that, i don't think we can use instanceof
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.
It does work in cloudflare in preview
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.
If this is a concern, there is a keep_classname
option in the webpack config.
🦋 Changeset detectedLatest commit: ccdb493 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
App router's |
what version of OpenNext are you on? when you say broken, what do you mean? |
Cloudflare@latest (=1.0.4) Same issue as the referenced issue: |
Sorry, correction, the original issue seems to be fixed. Repro doesn't reproduce it anymore, but we seem to be hitting a new issue it seems (fallback rewrite doesn't get triggered, and we end up with 404 in a different scenario). I will see if I can create a new reproduction soon. |
@lauri865 Alright. The reproduction you linked here doesn't have any |
I corrected that in the meanwhile as well, was missing a commit indeed. Thanks for pointing out. |
New reproduction committed: https://github.com/lauri865/opennext-routes-repro
If So, it seems like it's impossible to opt out from |
@lauri865 You need an incrementalCache in your |
We have Updated that repro with |
@lauri865 Create an issue with a link to the repro, then |
@conico974, I did, it's referenced as fixed by this PR. Which it seems to be not. Should I open another issue? |
@lauri865 Yeah, that's not the same issue:
|
Opened a new issue here with a reproduction: opennextjs/opennextjs-cloudflare#682 |
Dynamic route with fallback false can wrongly intercept and return 404 for routes that intersect with them.
Fix #677 and opennextjs/opennextjs-cloudflare#611