2025-05-05 17:27:36 +08:00
|
|
|
import type { NextConfig } from 'next';
|
2025-04-16 01:20:15 +08:00
|
|
|
|
2025-07-11 19:48:24 +08:00
|
|
|
const nextConfig = (): NextConfig => ({
|
2025-07-12 20:55:49 +08:00
|
|
|
output: (process.env.NEXT_OUTPUT as 'standalone') || undefined,
|
2025-08-08 17:54:12 +08:00
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/ingest/static/:path*',
|
|
|
|
destination: 'https://eu-assets.i.posthog.com/static/:path*',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/ingest/:path*',
|
|
|
|
destination: 'https://eu.i.posthog.com/:path*',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/ingest/flags',
|
|
|
|
destination: 'https://eu.i.posthog.com/flags',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
|
|
|
skipTrailingSlashRedirect: true,
|
2025-07-11 19:48:24 +08:00
|
|
|
});
|
2025-04-16 01:20:15 +08:00
|
|
|
|
|
|
|
export default nextConfig;
|