We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
config.build.ssr
env.ssrBuild
1 parent e97650c commit d08ecf5Copy full SHA for d08ecf5
packages/react-pages/src/node/index.ts
@@ -104,7 +104,7 @@ function pluginFactory(opts: PluginConfig = {}): Plugin {
104
},
105
define: {
106
__HASH_ROUTER__: !!useHashRouter,
107
- 'process.env.VITE_PAGES_IS_SSR': env.ssrBuild
+ 'process.env.VITE_PAGES_IS_SSR': config.build?.ssr
108
? JSON.stringify('true')
109
: JSON.stringify('false'),
110
0 commit comments