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.
process.env.VITE_SSG
1 parent 8e18fa2 commit dfe5af0Copy full SHA for dfe5af0
src/cache.ts
@@ -27,7 +27,7 @@ export function ensureInstance() {
27
export function getServerInstance() {
28
const instance = getCurrentInstance()
29
30
- if (instance?.proxy.$isServer)
+ if (process.env.VITE_SSG || instance?.proxy.$isServer)
31
return instance.proxy as InstanceType<VueConstructor>
32
return false
33
}
0 commit comments