Skip to content

Commit

Permalink
fix: opt in to import.meta.* properties
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 25, 2024
1 parent 4ce471f commit 9a6830f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 9a6830f

Please sign in to comment.