chore: start using dynamic routes

This commit is contained in:
Sébastien Chopin 2020-09-15 18:43:12 +02:00
parent a9f3ccf099
commit d273f803be

View File

@ -59,7 +59,7 @@ export async function resolvePagesRoutes (builder, app: NuxtApp) {
if (/^\[\.{3}/.test(part)) { if (/^\[\.{3}/.test(part)) {
route.path += '(.*)' route.path += '(.*)'
} else if (i === pathParts.length - 1) { } else if (i === pathParts.length - 1) {
route.path += '?' // route.path += '?'
} }
} else { } else {
route.path += `/${normalizedPart}` route.path += `/${normalizedPart}`