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 dynamic route src/app/[brand]/[[...route]] and a specific route src/app/[brand]/login/page.tsx. I'm creating a route guarding middleware that aims to toggle (based on a feature flag) between serving the catch-all page or the specific login page for this specific path.
How would I accomplish this?
The specific route seems to always override the catch-all page.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a dynamic route
src/app/[brand]/[[...route]]
and a specific routesrc/app/[brand]/login/page.tsx
. I'm creating a route guarding middleware that aims to toggle (based on a feature flag) between serving the catch-all page or the specific login page for this specific path.How would I accomplish this?
The specific route seems to always override the catch-all page.
Running Next 14 and the app router.
Beta Was this translation helpful? Give feedback.
All reactions