Skip to content

Commit

Permalink
Merge pull request #225 from hlxsites/ian-tmp-fix-front-page
Browse files Browse the repository at this point in the history
Fix "Resources" section on front page with tmp work-around (extract data from local, static file)
  • Loading branch information
iansk authored Oct 18, 2023
2 parents e6af5a1 + 107248e commit b8014cf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions blocks/resources/resources.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { html } from '../../scripts/scripts.js';
import '../card-carousel/card-carousel.js';

const FEED_URL = store.env === 'prod'
? 'https://www.paloaltonetworks.com/blog/prisma-cloud/feed/'
: `${window.hlx.codeBasePath}/assets/fallback.xml`;
const FEED_URL = `${window.hlx.codeBasePath}/assets/fallback.xml`;
//TODO - Fix
//const FEED_URL = store.env === 'prod'
// ? 'https://www.paloaltonetworks.com/blog/prisma-cloud/feed/'
// : `${window.hlx.codeBasePath}/assets/fallback.xml`;

async function getXMLFeed(url) {
return fetch(url)
Expand Down

0 comments on commit b8014cf

Please sign in to comment.