From 34d0fa5d03c9e7f060fa1a820a537b9586611943 Mon Sep 17 00:00:00 2001 From: gabriel miranda Date: Fri, 8 Nov 2024 13:20:57 -0300 Subject: [PATCH] fix ts error --- .../react-email/src/cli/utils/preview/start-dev-server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-email/src/cli/utils/preview/start-dev-server.ts b/packages/react-email/src/cli/utils/preview/start-dev-server.ts index cd1181f134..9ae28b1125 100644 --- a/packages/react-email/src/cli/utils/preview/start-dev-server.ts +++ b/packages/react-email/src/cli/utils/preview/start-dev-server.ts @@ -120,7 +120,9 @@ export const startDevServer = async ( // this is the most reliable way of communicating these paths through process.env = { NODE_ENV: 'development', - ...process.env, + ...(process.env as Omit & { + NODE_ENV?: NodeJS.ProcessEnv['NODE_ENV']; + }), ...getEnvVariablesForPreviewApp( // If we don't do normalization here, stuff like https://github.com/resend/react-email/issues/1354 happens. path.normalize(emailsDirRelativePath),