2023-08-30 23:10:59 +00:00
|
|
|
const withBundleAnalyzer = require("@next/bundle-analyzer");
|
|
|
|
|
|
|
|
const plugins = [];
|
|
|
|
plugins.push(withBundleAnalyzer({ enabled: process.env.ANALYZE === "true" }));
|
|
|
|
|
|
|
|
/** @type {import("next").NextConfig} */
|
|
|
|
const nextConfig = {
|
2023-09-04 16:21:37 +00:00
|
|
|
async redirects() {
|
|
|
|
return [
|
|
|
|
{
|
2023-09-05 18:35:02 +00:00
|
|
|
source: "/",
|
|
|
|
destination: "https://cal.com/ai",
|
2023-09-04 16:21:37 +00:00
|
|
|
permanent: true,
|
|
|
|
},
|
2023-09-05 18:35:02 +00:00
|
|
|
];
|
2023-09-04 16:21:37 +00:00
|
|
|
},
|
2023-08-30 23:10:59 +00:00
|
|
|
i18n: {
|
|
|
|
defaultLocale: "en",
|
|
|
|
locales: ["en"],
|
|
|
|
},
|
|
|
|
reactStrictMode: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = () => plugins.reduce((acc, next) => next(acc), nextConfig);
|