import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  /* config options here */
  async rewrites() {
    return [
      {
        source: "/prod/api/:path*",
        destination: "https://studio-api.prod.suno.com/api/:path*",
      },
      {
        source: "/staging/api/:path*",
        destination: "https://studio-api.staging.suno.com/api/:path*",
      },
      {
        source: "/@:username",
        destination: "/profile/:username",
      },
    ];
  },
};

export default nextConfig;
