commerce/next.config.js
Henrik Larsson 22aab2f657 Updates
2023-08-08 16:20:45 +02:00

22 lines
538 B
JavaScript

/** @type {import('next').NextConfig} */
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: {
scrollRestoration: true,
serverActions: true,
},
images: {
formats: ['image/avif', 'image/webp'],
domains: ['cdn.sanity.io'],
},
}
);