import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "standalone", async rewrites() { return [ { source: "/stats/script.js", destination: "https://umami.mati.ss/script.js" }, { source: "/stats/api/send", destination: "https://umami.mati.ss/api/send" }, { source: "/stats/api/collect", destination: "https://umami.mati.ss/api/collect" }, ]; }, }; export default nextConfig;