Skip to content

Commit

Permalink
fix: use local manifest for IPFS build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Jun 19, 2024
1 parent a2f27f8 commit e43a6a6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utilsApi/fetch-external-manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ export const fetchExternalManifest = async () => {
const cachedConfig = cache.get(config.CACHE_EXTERNAL_CONFIG_KEY);
if (cachedConfig) return cachedConfig;

// for IPFS build we use local manifest
// this allows local CID verification
if (config.ipfsMode) {
return {
___prefetch_manifest___: FallbackLocalManifest,
revalidate: config.DEFAULT_REVALIDATION,
};
}

let retries = 3;
while (retries > 0) {
try {
Expand Down

0 comments on commit e43a6a6

Please sign in to comment.