From 93fce55aee8e4d2d37507c254e04bd4655715f25 Mon Sep 17 00:00:00 2001 From: Hyunbin <47051820+hyunbinseo@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:50:13 +0900 Subject: [PATCH] fix(preview): set isPreview true (#15695) --- packages/vite/src/node/preview.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vite/src/node/preview.ts b/packages/vite/src/node/preview.ts index 837e508c5af9b4..bad5c6b65e9b73 100644 --- a/packages/vite/src/node/preview.ts +++ b/packages/vite/src/node/preview.ts @@ -108,6 +108,7 @@ export async function preview( 'serve', 'production', 'production', + true, ) const distDir = path.resolve(config.root, config.build.outDir)