Skip to content

Commit f9dea99

Browse files
authored
fix: opt in to import.meta.* properties (#23)
1 parent c93b7a7 commit f9dea99

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/runtime/plugins/edgedb-auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
1212

1313
async function updateIdentity(event?: H3Event) {
1414
try {
15-
if (!process.server) {
15+
if (!import.meta.server) {
1616
identity.value = await $fetch('/api/auth/identity')
1717
return
1818
}
@@ -43,7 +43,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
4343
await navigateTo(redirectTo)
4444
}
4545

46-
if (process.server) {
46+
if (import.meta.server) {
4747
const event = nuxtApp?.ssrContext?.event
4848

4949
if (event)

0 commit comments

Comments
 (0)