import type { NextConfig } from "next"; const docsUrl = ( process.env.NEXT_PUBLIC_DOCS_URL?.trim() || "https://docs.songs2vid.com" ).replace(/\/$/, ""); const apiDocsUrl = `${docsUrl}/docs/api/overview`; const nextConfig: NextConfig = { output: "standalone", images: { remotePatterns: [ { protocol: "https", hostname: "images.unsplash.com", }, ], }, experimental: { serverActions: { bodySizeLimit: "32mb", }, }, async redirects() { return [ { source: "/dashboard/api-docs", destination: apiDocsUrl, permanent: false, }, ]; }, }; export default nextConfig;