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;