diff --git a/packages/webapp/next.config.ts b/packages/webapp/next.config.ts index cab384c5a1..d142f9a61f 100644 --- a/packages/webapp/next.config.ts +++ b/packages/webapp/next.config.ts @@ -126,13 +126,11 @@ const nextConfig: NextConfig = { }, ]; - // to support GitPod environment and avoid CORS issues, we need to proxy the API requests - if (process.env.NEXT_PUBLIC_DOMAIN === 'localhost') { - rewrites.unshift({ - source: '/api/:path*', - destination: `${process.env.NEXT_PUBLIC_API_URL}/:path*`, - }); - } + // TODO cf just because origin on cf is different for now, remove this before prod + rewrites.unshift({ + source: '/api/:path*', + destination: `https://api.daily.dev/:path*`, + }); return rewrites; },