Skip to content

Commit

Permalink
refactor: use config.build.ssr instead of env.ssrBuild (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Nov 12, 2023
1 parent e97650c commit d08ecf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-pages/src/node/index.ts
Expand Up @@ -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'),
},
Expand Down

0 comments on commit d08ecf5

Please sign in to comment.