mirror of
https://github.com/vercel/commerce.git
synced 2025-06-03 06:46:59 +00:00
23 lines
499 B
TypeScript
23 lines
499 B
TypeScript
process.env.COMMERCE_PROVIDER ??= 'local';
|
|
// 🔧 fallback so the build never crashes if COMMERCE_PROVIDER is missing
|
|
if (!process.env.COMMERCE_PROVIDER) {
|
|
process.env.COMMERCE_PROVIDER = 'local';
|
|
}
|
|
export default {
|
|
experimental: {
|
|
ppr: true,
|
|
inlineCss: true,
|
|
useCache: true
|
|
},
|
|
images: {
|
|
formats: ['image/avif', 'image/webp'],
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'cdn.shopify.com',
|
|
pathname: '/s/files/**'
|
|
}
|
|
]
|
|
}
|
|
};
|