import { NextConfig } from 'next'; export default function withPlausibleProxy(options: { /** * The site-specific script URL from your Plausible dashboard, e.g. https://plausible.io/js/pa-XXXXX.js. */ src: string; /** * The local path for the proxied script. Defaults to /js/script.js. */ scriptPath?: string; /** * The local path for the proxied API endpoint. Defaults to /api/event. */ apiPath?: string; }): (nextConfig: NextConfig) => NextConfig;