28 lines
639 B
JavaScript
28 lines
639 B
JavaScript
import { createMDX } from 'fumadocs-mdx/next';
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
reactStrictMode: true,
|
|
skipTrailingSlashRedirect: true,
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/ingest/static/:path*',
|
|
destination: 'https://us-assets.i.posthog.com/static/:path*',
|
|
},
|
|
{
|
|
source: '/ingest/array/:path*',
|
|
destination: 'https://us-assets.i.posthog.com/array/:path*',
|
|
},
|
|
{
|
|
source: '/ingest/:path*',
|
|
destination: 'https://us.i.posthog.com/:path*',
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|