From b590d0857c289259a5e3b5be330cffbce944879c Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Thu, 5 Sep 2024 13:51:22 +0800 Subject: [PATCH] disable nextjs proxy, then can using dalle as plugin --- next.config.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 27c60dd29..26dadca4c 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -65,10 +65,10 @@ if (mode !== "export") { nextConfig.rewrites = async () => { const ret = [ // adjust for previous version directly using "/api/proxy/" as proxy base route - { - source: "/api/proxy/v1/:path*", - destination: "https://api.openai.com/v1/:path*", - }, + // { + // source: "/api/proxy/v1/:path*", + // destination: "https://api.openai.com/v1/:path*", + // }, { // https://{resource_name}.openai.azure.com/openai/deployments/{deploy_name}/chat/completions source: "/api/proxy/azure/:resource_name/deployments/:deploy_name/:path*",