import type { NextConfig } from "next";import bundleAnalyzer from "@next/bundle-analyzer"; const withBundleAnalyzer = bundleAnalyzer({ enabled: process.env.ANALYZE === "true",}); const nextConfig: NextConfig = { output: "standalone", images: { unoptimized: true }, async redirects() { return [ { source: "/models", destination: "/recipes", permanent: true, }, ]; }, async rewrites() { return [ { source: "/api/chat-v2", destination: "/api/chat", }, ]; },}; export default withBundleAnalyzer(nextConfig);
import type { NextConfig } from "next";
import bundleAnalyzer from "@next/bundle-analyzer";
const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === "true",
});
const nextConfig: NextConfig = {
output: "standalone",
images: { unoptimized: true },
async redirects() {
return [
{
source: "/models",
destination: "/recipes",
permanent: true,
},
];
},
async rewrites() {
return [
{
source: "/api/chat-v2",
destination: "/api/chat",
},
];
},
};
export default withBundleAnalyzer(nextConfig);