From d06b3554f6e973cb891257c97acdb571699b5fb6 Mon Sep 17 00:00:00 2001 From: capJavert Date: Fri, 22 Nov 2024 14:41:22 +0100 Subject: [PATCH] feat: temp proxy api --- packages/webapp/next.config.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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; },