mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
chore(nuxt): remove unnecessary await (#28407)
This commit is contained in:
parent
fbdf4f3465
commit
03a0fb33f3
@ -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,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user