Skip to content

Commit b590d08

Browse files
committed
disable nextjs proxy, then can using dalle as plugin
1 parent 9820193 commit b590d08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

next.config.mjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ if (mode !== "export") {
6565
nextConfig.rewrites = async () => {
6666
const ret = [
6767
// adjust for previous version directly using "/api/proxy/" as proxy base route
68-
{
69-
source: "/api/proxy/v1/:path*",
70-
destination: "https://api.openai.com/v1/:path*",
71-
},
68+
// {
69+
// source: "/api/proxy/v1/:path*",
70+
// destination: "https://api.openai.com/v1/:path*",
71+
// },
7272
{
7373
// https://{resource_name}.openai.azure.com/openai/deployments/{deploy_name}/chat/completions
7474
source: "/api/proxy/azure/:resource_name/deployments/:deploy_name/:path*",

0 commit comments

Comments
 (0)