Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
fix: use globalNuxt in full static mode
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 9, 2020
1 parent e87d610 commit 1479665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const loadFullStatic = (vm: AugmentedComponentInstance) => {
? fetchOnServer.call(vm) !== false
: fetchOnServer !== false

const nuxt = vm.$nuxt as AugmentedNuxtApp
const nuxt = vm[globalNuxt] as AugmentedNuxtApp
if (!fetchedOnServer || nuxt?.isPreview || !nuxt?._pagePayload) {
return
}
Expand Down

0 comments on commit 1479665

Please sign in to comment.