From 868f25070522e01b3f97eb31f92dcbcc93d17b64 Mon Sep 17 00:00:00 2001 From: Jieren Chen Date: Sun, 8 Sep 2024 12:13:56 -0400 Subject: [PATCH] use env, open up google urls --- components/carousel.tsx | 2 +- components/grid/three-items.tsx | 2 +- next.config.js | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) 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/**' + } ] } };