From 43ba9923109ba44c14efe5a86f25deccac5fbb9f Mon Sep 17 00:00:00 2001 From: juliusmarminge Date: Sat, 26 Oct 2024 12:33:31 +0200 Subject: [PATCH] synchronous import --- cli/template/base/next.config.js | 2 +- cli/template/extras/config/next-config-appdir.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/template/base/next.config.js b/cli/template/base/next.config.js index 98b6f90a51..0eff695958 100644 --- a/cli/template/base/next.config.js +++ b/cli/template/base/next.config.js @@ -2,7 +2,7 @@ * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful * for Docker builds. */ -await import("./src/env.js"); +import "./src/env.js"; /** @type {import("next").NextConfig} */ const config = { diff --git a/cli/template/extras/config/next-config-appdir.js b/cli/template/extras/config/next-config-appdir.js index 9bfe4a0e2a..121c4f4c24 100644 --- a/cli/template/extras/config/next-config-appdir.js +++ b/cli/template/extras/config/next-config-appdir.js @@ -2,7 +2,7 @@ * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful * for Docker builds. */ -await import("./src/env.js"); +import "./src/env.js"; /** @type {import("next").NextConfig} */ const config = {};