commerce/next.config.js
Timur Suleymanov 83ae628672 tests pages
2024-06-05 00:37:35 +05:00

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 };