From 9a6830fe4d1916e31764ff0214a57b0f4e486efa Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 25 Mar 2024 13:53: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 dd0e1da..6df05ba 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -36,7 +36,7 @@ export default defineNuxtPlugin((nuxtApp) => { const previewCookie = useCookie('io.prismic.preview').value // Update client with req when running server side - if (process.server) { + if (import.meta.server) { prismicPlugin.client.enableAutoPreviewsFromReq(useRequestEvent()?.req) }