use env, open up google urls

This commit is contained in:
Jieren Chen 2024-09-08 12:13:56 -04:00
parent e2b30b8bb6
commit 868f250705
No known key found for this signature in database
GPG Key ID: 2FF322D21B5DB10B
3 changed files with 8 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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/**'
}
]
}
};