Files
songs2vid/next.config.ts
T
Atakan Doğan Özban 6476bb42a4 Strip Songs2VID to a payment-free self-hosted OSS core.
Remove Stripe/billing/pricing/marketing, simplify schema and entitlements for unlimited self-host use, and keep auth, encode, and YouTube upload.
2026-08-03 06:52:00 +02:00

39 lines
759 B
TypeScript

import type { NextConfig } from "next";
function resolveDocsUrl(): string {
if (process.env.NEXT_PUBLIC_DOCS_URL?.trim()) {
return process.env.NEXT_PUBLIC_DOCS_URL.replace(/\/$/, "");
}
return "https://docs.songs2vid.com";
}
const apiDocsUrl = `${resolveDocsUrl()}/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;