Ver Fonte

disable nextjs proxy, then can using dalle as plugin

lloydzhou há 1 ano atrás
pai
commit
b590d0857c
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      next.config.mjs

+ 4 - 4
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*",