From 1d46d7ea99e53ecc00f62ab3b2e21790460f692e Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 8 Mar 2021 14:44:33 -0600 Subject: [PATCH] fix type --- packages/next/build/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/build/utils.ts b/packages/next/build/utils.ts index 96a7c1d96feda..44b641e1f49ca 100644 --- a/packages/next/build/utils.ts +++ b/packages/next/build/utils.ts @@ -885,7 +885,7 @@ export async function getNamedExports( distDir: string, isLikeServerless: boolean, runtimeEnvConfig: any -): Array { +): Promise> { require('../next-server/lib/runtime-config').setConfig(runtimeEnvConfig) const components = await loadComponents(distDir, page, isLikeServerless) let mod = components.ComponentMod