From d08ecf5809c981b40b6f5766d99da95c55db0016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Sun, 12 Nov 2023 12:46:39 +0900 Subject: [PATCH] refactor: use `config.build.ssr` instead of `env.ssrBuild` (#165) --- packages/react-pages/src/node/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-pages/src/node/index.ts b/packages/react-pages/src/node/index.ts index a88f75f5..8791c12b 100644 --- a/packages/react-pages/src/node/index.ts +++ b/packages/react-pages/src/node/index.ts @@ -104,7 +104,7 @@ function pluginFactory(opts: PluginConfig = {}): Plugin { }, define: { __HASH_ROUTER__: !!useHashRouter, - 'process.env.VITE_PAGES_IS_SSR': env.ssrBuild + 'process.env.VITE_PAGES_IS_SSR': config.build?.ssr ? JSON.stringify('true') : JSON.stringify('false'), },