23 lines
453 B
TypeScript
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;
|