Repository navigation
Configurable __manifest route for lazyRouteDiscovery feature
#12418
Replies: 9 comments 7 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. |
|
@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 🙌 |
|
Another solution would be that the |
|
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. |
|
I’m currently patching |
|
I'd be interested in this endpoint being configurable as well, for instance at sanity we have multiple apps on the same domain, where the assets are namespaced to avoid collisions, the app's don't have basename separators e.g. |
|
I agree to the above, After upgrading from Remix, and a subsequent deploy to our dev/staging/qa environments, this problem reared its heads. I do not have the opiton of rewiring all my routes with a different basename at the moment. Even if I did, there are other problems I'd have to face (like the first component in my routes being dynamic |
|
fyi: A new |
|
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Background
We're running multiple Remix applications on a single domain, structured by distinct
basePathsegments. 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_lazyRouteDiscoveryin a Remix app, we encountered a critical problem:The
__manifestroute is shared across all apps on the same domain.This behavior assumes the
__manifestroute 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
__manifestroute 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
__manifestroute location, RR7/Remix applications can operate independently on the same domain without conflict, ensuring compatibility with thelazyRouteDiscoveryfeature.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! 🙌
All reactions