Next.js Discord

Discord Forum

Catch-all Segments not work correctly on vercel

Unanswered
Northern snakehead posted this in #help-forum
Open in Discord
Northern snakeheadOP
When I visit my Catch-all Segments route which is posts/[...slug]/page.tsx and the url is like /posts/react/react-rerender, what I got for slug is [ 'react%2Freact-rerender' ], the expected value should be ['react', 'react-rerender']. Note this just happen on vercel, it work fine on my local machine no matter in dev mode or not.

1 Reply

Northern snakeheadOP
Anyone can help here? I can not make it work on vercel!