From 03a0fb33f3220c488fdd8dedfa0662a1baee9ef0 Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Mon, 5 Aug 2024 17:33:57 +0200 Subject: [PATCH] chore(nuxt): remove unnecessary await (#28407) --- packages/nuxt/src/pages/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/pages/utils.ts b/packages/nuxt/src/pages/utils.ts index c90e890883..2c2a09a9d0 100644 --- a/packages/nuxt/src/pages/utils.ts +++ b/packages/nuxt/src/pages/utils.ts @@ -58,7 +58,7 @@ export async function resolvePagesRoutes (): Promise { // 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')) - const allRoutes = await generateRoutesFromFiles(uniqueBy(scannedFiles, 'relativePath'), { + const allRoutes = generateRoutesFromFiles(uniqueBy(scannedFiles, 'relativePath'), { shouldUseServerComponents: !!nuxt.options.experimental.componentIslands, })