commerce/next.config.js
2023-11-24 10:56:53 +01:00

30 lines
639 B
JavaScript

/** @type {import('next').NextConfig} */
module.exports = {
eslint: {
// Disabling on production builds because we're running checks on PRs via GitHub Actions.
ignoreDuringBuilds: true
},
images: {
formats: ["image/avif", "image/webp"],
remotePatterns: [
{ hostname: "picsum.photos" },
{ hostname: "storage.googleapis.com" },
{
hostname: "**.cf3.rackcdn.com",
protocol: "https",
port: "",
pathname: "/*"
}
]
},
async redirects() {
return [
{
source: "/password",
destination: "/",
permanent: true
}
];
}
};