chore(nuxt): remove unnecessary await (#28407)

This commit is contained in:
Julien Huang 2024-08-05 17:33:57 +02:00 committed by GitHub
parent 576c34efe9
commit f5dad8a82f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export async function resolvePagesRoutes (): Promise<NuxtPage[]> {
// sort scanned files using en-US locale to make the result consistent across different system locales // sort scanned files using en-US locale to make the result consistent across different system locales
scannedFiles.sort((a, b) => a.relativePath.localeCompare(b.relativePath, 'en-US')) scannedFiles.sort((a, b) => a.relativePath.localeCompare(b.relativePath, 'en-US'))
const allRoutes = await generateRoutesFromFiles(uniqueBy(scannedFiles, 'relativePath'), { const allRoutes = generateRoutesFromFiles(uniqueBy(scannedFiles, 'relativePath'), {
shouldUseServerComponents: !!nuxt.options.experimental.componentIslands, shouldUseServerComponents: !!nuxt.options.experimental.componentIslands,
}) })