- Delete docs-site/ (superseded by web/app/docs) - Add posthog-js with Vercel reverse proxy at /cdata to bypass adblockers - Track pageviews (SPA-aware), download clicks (hero/navbar/mobile_drawer), and GitHub link clicks (hero/navbar/mobile_drawer/footer)
19 lines
425 B
TypeScript
19 lines
425 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
skipTrailingSlashRedirect: true,
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/cmuxterm/static/:path*",
|
|
destination: "https://us-assets.i.posthog.com/static/:path*",
|
|
},
|
|
{
|
|
source: "/cmuxterm/:path*",
|
|
destination: "https://us.i.posthog.com/:path*",
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|