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