mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
35 lines
749 B
JavaScript
35 lines
749 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
enabled: process.env.BUNDLE_ANALYZE === 'true'
|
|
});
|
|
|
|
module.exports = withBundleAnalyzer({
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/en/search',
|
|
destination: '/en/sok',
|
|
locale: false
|
|
}
|
|
];
|
|
},
|
|
eslint: {
|
|
// Disabling on production builds because we're running checks on PRs via GitHub Actions.
|
|
ignoreDuringBuilds: true
|
|
},
|
|
experimental: {
|
|
scrollRestoration: true,
|
|
serverActions: true,
|
|
logging: 'verbose'
|
|
},
|
|
images: {
|
|
formats: ['image/avif', 'image/webp'],
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'cdn.sanity.io'
|
|
}
|
|
]
|
|
}
|
|
});
|