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

Commit

Permalink
fix: fetch payload with origin
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSnow committed Aug 10, 2023
1 parent 52934e4 commit 0553e06
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ async function loadStoripressPayloadWithRawURL(path: string, bypassCache = false
return loadStoripressPayloadWithURLServer(path, bypassCache)
}
const { public: publicConfig } = useRuntimeConfig()
let modulePath = publicConfig.storipress?.payloadAbsoluteURL ? withBase(path, publicConfig.siteCDN) : path
let modulePath = publicConfig.storipress?.payloadAbsoluteURL
? withBase(path, publicConfig.siteCDN)
: withBase(path, location.origin)
if (bypassCache) {
modulePath += `?t=${Date.now()}`
}
Expand Down

0 comments on commit 0553e06

Please sign in to comment.