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
I have a project that heavily relies on several modules injecting pages. It is used to create websites for different countries by feeding country-config into nuxt-config. As a result, each module may inject a different set of pages based on the configuration.
Currently, I have found no way to define custom routes for pages injected through modules.
I cannot use customRoutes: 'page' because it would require modifying all modules whenever we release the website for a new country.
Also, I cannot use customRoutes: 'config' since it cannot resolve AnalyzedNuxtPageMeta for injected pages.
I wrote some details in discussions few days ago: #2398
I'd like to have an ability to define customRoutes based on route name instead of fs-like path.
So next 2 blocks will give same result:
Describe the feature
I have a project that heavily relies on several modules injecting pages. It is used to create websites for different countries by feeding country-config into nuxt-config. As a result, each module may inject a different set of pages based on the configuration.
Currently, I have found no way to define custom routes for pages injected through modules.
I cannot use
customRoutes: 'page'
because it would require modifying all modules whenever we release the website for a new country.Also, I cannot use
customRoutes: 'config'
since it cannot resolve AnalyzedNuxtPageMeta for injected pages.I wrote some details in discussions few days ago:
#2398
I'd like to have an ability to define customRoutes based on route name instead of fs-like path.
So next 2 blocks will give same result:
Additional information
Final checks
The text was updated successfully, but these errors were encountered: