diff --git a/packages/webapp/next.config.ts b/packages/webapp/next.config.ts index 9fd8c56efe..5d3a76f889 100644 --- a/packages/webapp/next.config.ts +++ b/packages/webapp/next.config.ts @@ -106,24 +106,6 @@ const nextConfig: NextConfig = { }, assetPrefix: process.env.CDN_ASSET_PREFIX, rewrites: async () => { - if (process.env.CF_DEPLOYMENT_URL) { - return { - beforeFiles: [ - { - source: '/:path*', - destination: `${process.env.CF_DEPLOYMENT_URL}/:path*`, - }, - ], - afterFiles: [], - fallback: [ - { - source: '/:path*', - destination: `${process.env.CF_DEPLOYMENT_URL}/:path*`, - }, - ], - }; - } - const rewrites: Rewrite[] = [ { source: '/api/sitemaps/:path*',