@kapa.ai using the const slug = event.context.params.slug line in the above example, gives an IDE error of could be unassigned, but makes no change to the execution
@kapa.ai
Exact Path of file:
\server\api\[genreId]\releases\[...slug].ts
I've renamed the file to [...slug].ts and changed the page references to slug
nuxt.config.ts file:
@kapa.ai I've rebuil;d the whole [...page].ts file, the output is still the same however, page 1, when there is no /1 on the end, renders the Welcome to nuxt page, add the /1 it brings page 1 of the api output
@kapa.ai this still does not work for pages with no slug which would be the case for page 1, however it works perfectly still for pages 2+
my implementation:
@kapa.ai this suggestions works only when [or-is-it] has a value, if the root of the folder is hit, error message occurs, despite having the || 1 on the const as suggested