mirror of
https://github.com/vercel/commerce.git
synced 2025-05-08 18:57:51 +00:00
use env, open up google urls
This commit is contained in:
parent
e2b30b8bb6
commit
868f250705
@ -4,7 +4,7 @@ import { GridTileImage } from './grid/tile';
|
|||||||
|
|
||||||
export async function Carousel() {
|
export async function Carousel() {
|
||||||
// Collections that start with `hidden-*` are hidden from the search page.
|
// 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;
|
if (!products?.length) return null;
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ function ThreeItemGridItem({
|
|||||||
export async function ThreeItemGrid() {
|
export async function ThreeItemGrid() {
|
||||||
// Collections that start with `hidden-*` are hidden from the search page.
|
// Collections that start with `hidden-*` are hidden from the search page.
|
||||||
const homepageItems = await getCollectionProducts({
|
const homepageItems = await getCollectionProducts({
|
||||||
collection: 'hidden-homepage-featured-items'
|
collection: process.env.FW_COLLECTION || '',
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!homepageItems[0] || !homepageItems[1] || !homepageItems[2]) return null;
|
if (!homepageItems[0] || !homepageItems[1] || !homepageItems[2]) return null;
|
||||||
|
@ -7,6 +7,11 @@ module.exports = {
|
|||||||
protocol: 'https',
|
protocol: 'https',
|
||||||
hostname: 'cdn.shopify.com',
|
hostname: 'cdn.shopify.com',
|
||||||
pathname: '/s/files/**'
|
pathname: '/s/files/**'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
protocol: 'https',
|
||||||
|
hostname: 'storage.googleapis.com',
|
||||||
|
pathname: '/cdn.staging.fourthwall.com/**'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user