payment-backoffice/next.config.ts
2025-10-25 11:39:24 +02:00

27 lines
538 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
sassOptions: {
quietDeps: true,
silenceDeprecations: ["legacy-js-api"],
},
webpack: config => {
if (process.env.NEXT_PUBLIC_API_MOCKING === "enabled") {
config.resolve.alias["@mswjs/interceptors"] = false;
}
return config;
},
async redirects() {
return [
{
source: "/",
destination: "/dashboard",
permanent: true,
},
];
},
};
export default nextConfig;