Configurable __manifest
route for lazyRouteDiscovery
feature
#12418
Replies: 4 comments 4 replies
-
We’ve encountered the same issue and would also like the An even better solution for us, given our relatively small manifest file, would be a configuration option to opt out of lazy route discovery entirely and keep serving a static manifest file instead. |
Beta Was this translation helpful? Give feedback.
-
@brookslybrand do you think you can take a look at this request? If you need more context, please don't hesitate to let me know! Thank you in advance 🙌 |
Beta Was this translation helpful? Give feedback.
-
Another solution would be that the |
Beta Was this translation helpful? Give feedback.
-
In my case, the Lazy Route Discovery feature breaks PWA in offline mode. And I cannot complete Remix -> React Router migration because of that. That would be helpful to be able to opt out of this feature, unless you have a better solution for PWA and Lazy Route Discovery. |
Beta Was this translation helpful? Give feedback.
-
Background
We're running multiple Remix applications on a single domain, structured by distinct
basePath
segments. For example:http://remix.run.com/register
→ Register Apphttp://remix.run.com/docs
→ Docs AppEach app operates independently and can have deeply nested routes, such as:
http://remix.run.com/docs/intro/first/page/
→ served by the Docs App.The Issue
After enabling the future flag
v3_lazyRouteDiscovery
in a Remix app, we encountered a critical problem:The
__manifest
route is shared across all apps on the same domain.This behavior assumes the
__manifest
route exists at the root level of the domain, causing conflicts and breaking the app where this flag was enabled.This issue has been previously highlighted by @JLarky: Discussion Comment.
Proposed Solution
To resolve this, the destination of the
__manifest
route should be configurable or disableable.As mentioned by @brophdawg11 in the linked discussion, it seems this functionality may already exist but has not been shipped yet.
By allowing customization of the
__manifest
route location, RR7/Remix applications can operate independently on the same domain without conflict, ensuring compatibility with thelazyRouteDiscovery
feature.We’d appreciate feedback on whether this configuration is already available or if there are plans to introduce it soon.
Thank you for your work and support! 🙌
Beta Was this translation helpful? Give feedback.
All reactions