mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
38 lines
828 B
JavaScript
38 lines
828 B
JavaScript
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
reactStrictMode: true,
|
|
// This is required to support PostHog trailing slash API requests
|
|
skipTrailingSlashRedirect: true,
|
|
experimental: {
|
|
reactCompiler: true,
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{ protocol: "https", hostname: "pbs.twimg.com" },
|
|
{ protocol: "https", hostname: "abs.twimg.com" },
|
|
],
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/ingest/static/:path*",
|
|
destination: "https://us-assets.i.posthog.com/static/:path*",
|
|
},
|
|
{
|
|
source: "/ingest/:path*",
|
|
destination: "https://us.i.posthog.com/:path*",
|
|
},
|
|
{
|
|
source: "/ingest/decide",
|
|
destination: "https://us.i.posthog.com/decide",
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|