export const config = { matcher: ['/:slug', '/:slug/*'], // Protect both /[slug] and /[slug]/nested };
Explanation: /[slug]/* doesn’t match /[slug] (no trailing slash). You must explicitly match /:slug if you want to include it.