We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
import.meta.*
1 parent c93b7a7 commit f9dea99Copy full SHA for f9dea99
1 file changed
src/runtime/plugins/edgedb-auth.ts
@@ -12,7 +12,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
12
13
async function updateIdentity(event?: H3Event) {
14
try {
15
- if (!process.server) {
+ if (!import.meta.server) {
16
identity.value = await $fetch('/api/auth/identity')
17
return
18
}
@@ -43,7 +43,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
43
await navigateTo(redirectTo)
44
45
46
- if (process.server) {
+ if (import.meta.server) {
47
const event = nuxtApp?.ssrContext?.event
48
49
if (event)
0 commit comments