mirror of
https://github.com/vercel/commerce.git
synced 2025-06-16 12:21:20 +00:00
36 lines
728 B
JavaScript
36 lines
728 B
JavaScript
const path = require('path');
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const baseConfig = {
|
|
eslint: {
|
|
// Disabling on production builds because we're running checks on PRs via GitHub Actions.
|
|
ignoreDuringBuilds: true
|
|
},
|
|
images: {
|
|
formats: ['image/avif', 'image/webp'],
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'cdn.shopify.com',
|
|
pathname: '/s/files/**'
|
|
}
|
|
]
|
|
},
|
|
sassOptions: {
|
|
includePaths: [path.join(__dirname, 'styles')]
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/password',
|
|
destination: '/',
|
|
permanent: true
|
|
}
|
|
];
|
|
}
|
|
};
|
|
|
|
const spreeConfig = {};
|
|
|
|
module.exports = { ...baseConfig, ...spreeConfig };
|