diff --git a/components/carousel.tsx b/components/carousel.tsx index a137bbb4f..c341cd582 100644 --- a/components/carousel.tsx +++ b/components/carousel.tsx @@ -4,7 +4,7 @@ import { GridTileImage } from './grid/tile'; export async function Carousel() { // Collections that start with `hidden-*` are hidden from the search page. - const products = await getCollectionProducts({ collection: 'hidden-homepage-carousel' }); + const products = await getCollectionProducts({ collection: process.env.FW_COLLECTION || '' }); if (!products?.length) return null; diff --git a/components/grid/three-items.tsx b/components/grid/three-items.tsx index d37cdb9de..0217a23ed 100644 --- a/components/grid/three-items.tsx +++ b/components/grid/three-items.tsx @@ -44,7 +44,7 @@ function ThreeItemGridItem({ export async function ThreeItemGrid() { // Collections that start with `hidden-*` are hidden from the search page. const homepageItems = await getCollectionProducts({ - collection: 'hidden-homepage-featured-items' + collection: process.env.FW_COLLECTION || '', }); if (!homepageItems[0] || !homepageItems[1] || !homepageItems[2]) return null; diff --git a/next.config.js b/next.config.js index 949add658..5455e9e34 100644 --- a/next.config.js +++ b/next.config.js @@ -7,7 +7,12 @@ module.exports = { protocol: 'https', hostname: 'cdn.shopify.com', pathname: '/s/files/**' - } + }, + { + protocol: 'https', + hostname: 'storage.googleapis.com', + pathname: '/cdn.staging.fourthwall.com/**' + } ] } };