mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 22:16:58 +00:00
23 lines
545 B
JavaScript
23 lines
545 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const { i18n } = require('./languages.json')
|
|
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
enabled: process.env.BUNDLE_ANALYZE === 'true',
|
|
})
|
|
|
|
module.exports = withBundleAnalyzer(
|
|
{
|
|
eslint: {
|
|
// Disabling on production builds because we're running checks on PRs via GitHub Actions.
|
|
ignoreDuringBuilds: true
|
|
},
|
|
experimental: {
|
|
appDir: true
|
|
},
|
|
images: {
|
|
formats: ['image/avif', 'image/webp'],
|
|
domains: ['cdn.sanity.io'],
|
|
},
|
|
}
|
|
);
|