Optional catch all pick every request
Unanswered
Irish Terrier posted this in #help-forum
Irish TerrierOP
It seems that using the optional catch all route next js picks every request, meaning also assets requests
This is a log example; as you can see, the props.params contains
Any clues here? I'm using the latest version of next js
[Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
digest: '43803216'
}
{
params: { slug: [ 'manifest', 'site.webmanifest' ] },
searchParams: {}
}
Error: Error: Cannot read properties of undefined (reading 'template'), Slug: site.webmanifest
at e9 (/Users/emiliano/Desktop/projects/barboursville/.next/standalone/.next/server/app/[[...slug]]/page.js:21:110350)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at runNextTicks (node:internal/process/task_queues:64:3)
at listOnTimeout (node:internal/timers:538:9)
at process.processTimers (node:internal/timers:512:7)
{
params: { slug: [ 'manifest', 'site.webmanifest' ] },
searchParams: {}
}
This is a log example; as you can see, the props.params contains
manifest
and site.webmanifest
which are just files...Any clues here? I'm using the latest version of next js