diff --git a/src/cache.ts b/src/cache.ts index a007489e..36079353 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -27,7 +27,7 @@ export function ensureInstance() { export function getServerInstance() { const instance = getCurrentInstance() - if (instance?.proxy.$isServer) + if (process.env.VITE_SSG || instance?.proxy.$isServer) return instance.proxy as InstanceType return false }