mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Modify env for supporting image optimization
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
parent
735b0eded4
commit
054ac1dcfb
@ -24,7 +24,7 @@ export interface OpenCommerceConfig extends CommerceAPIConfig {
|
||||
const ONE_DAY = 60 * 60 * 24
|
||||
|
||||
const config: OpenCommerceConfig = {
|
||||
commerceUrl: API_URL,
|
||||
commerceUrl: `${API_URL}/graphql`,
|
||||
apiToken: '',
|
||||
shopId: SHOP_ID ?? '',
|
||||
customerCookie: 'opencommerce_customerToken',
|
||||
|
@ -3,6 +3,6 @@ const commerce = require('./commerce.config.json')
|
||||
module.exports = {
|
||||
commerce,
|
||||
images: {
|
||||
domains: ['localhost'],
|
||||
domains: [process.env.OPENCOMMERCE_STOREFRONT_API_URL],
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user