You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the past, The learning MFE used to support subdirectory paths i.e. PUBLIC_PATH. This helps the deployment of learning MFE in subdirectories and accessing it through an exposed PUBLIC_PATH.
Example
Suppose we have a use case where we want to access Learning MFE from a subdirectory on a path e.g. /learn instead of /. To do this in the past, we would add a config variable i.e. PUBLIC_PATH='/learn/' in .env.development (In case of local instance). Once done the learning MFE can be accessed at localhost:2000/learn/course/....
Issue
It looks like after feat: upgrade react router to v6 the PUBLIC_PATH is not working anymore. This could probably be because of some missing configurations in the new ReactRouter version (v6) to support this.
OR
A possible solution is that we have defined routes like HOME: '/course/:courseId/home', Which would not care if there is any PUBLIC_PATH defined. We should probably refactor these to use the PUBLIC_PATH. A reference for how this can be done can be seen in Discussions MFE.
The text was updated successfully, but these errors were encountered:
Context:
In the past, The learning MFE used to support subdirectory paths i.e.
PUBLIC_PATH
. This helps the deployment of learning MFE in subdirectories and accessing it through an exposedPUBLIC_PATH
.Example
Suppose we have a use case where we want to access Learning MFE from a subdirectory on a path e.g.
/learn
instead of/
. To do this in the past, we would add a config variable i.e.PUBLIC_PATH='/learn/'
in.env.development
(In case of local instance). Once done the learning MFE can be accessed atlocalhost:2000/learn/course/...
.Issue
It looks like after feat: upgrade react router to v6 the
PUBLIC_PATH
is not working anymore. This could probably be because of some missing configurations in the new ReactRouter version (v6
) to support this.OR
A possible solution is that we have defined routes like HOME: '/course/:courseId/home', Which would not care if there is any
PUBLIC_PATH
defined. We should probably refactor these to use thePUBLIC_PATH
. A reference for how this can be done can be seen in Discussions MFE.The text was updated successfully, but these errors were encountered: