Skip to content

Commit d08ecf5

Browse files
authored
refactor: use config.build.ssr instead of env.ssrBuild (#165)
1 parent e97650c commit d08ecf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-pages/src/node/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function pluginFactory(opts: PluginConfig = {}): Plugin {
104104
},
105105
define: {
106106
__HASH_ROUTER__: !!useHashRouter,
107-
'process.env.VITE_PAGES_IS_SSR': env.ssrBuild
107+
'process.env.VITE_PAGES_IS_SSR': config.build?.ssr
108108
? JSON.stringify('true')
109109
: JSON.stringify('false'),
110110
},

0 commit comments

Comments
 (0)