From bb241963fbe4df6aae115d229f9c7c26dd87ea9e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 25 Mar 2024 12:59:38 +0000 Subject: [PATCH] fix: opt in to `import.meta.*` properties --- src/runtime/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index 9bc850ee..c6a1a7fa 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -25,7 +25,7 @@ export default defineNuxtPlugin(async (nuxtApp) => { await checkIfUserExists(); nuxtApp.hook('page:start', async () => { - if (process.client) { + if (import.meta.client) { await checkAutoRefresh(); await checkIfUserExists(); }