I'm running into a problem trying to get routes working with [params]
/:params
.
The paths I'm working with will always be structured as follows:
console/sites/[siteId]/possibly-another-directory/page
.
The console/sites
portion I can set as basePath
in next.config.js but the [siteId]
is something I would rather not have to manually add to every path in order to not end up with console/sites/possibly-another-directory/page
. Is there a single place I can set this so that it will be included in every path I link to from within my site?
FWIW, I've tried setting my basePath
to /console/sites/:siteId
but :siteId
was being read as a literal value.