payment-backoffice/next.config.ts
2025-08-06 09:41:20 +02:00

23 lines
453 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
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;