14 lines
308 B
TypeScript
14 lines
308 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;
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|