Modify env for supporting image optimization

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe 2022-04-29 17:41:12 +07:00
parent 735b0eded4
commit 054ac1dcfb
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ export interface OpenCommerceConfig extends CommerceAPIConfig {
const ONE_DAY = 60 * 60 * 24 const ONE_DAY = 60 * 60 * 24
const config: OpenCommerceConfig = { const config: OpenCommerceConfig = {
commerceUrl: API_URL, commerceUrl: `${API_URL}/graphql`,
apiToken: '', apiToken: '',
shopId: SHOP_ID ?? '', shopId: SHOP_ID ?? '',
customerCookie: 'opencommerce_customerToken', customerCookie: 'opencommerce_customerToken',

View File

@ -3,6 +3,6 @@ const commerce = require('./commerce.config.json')
module.exports = { module.exports = {
commerce, commerce,
images: { images: {
domains: ['localhost'], domains: [process.env.OPENCOMMERCE_STOREFRONT_API_URL],
}, },
} }