AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(frontend): fix custom mutator of orval (#10269)
Abhimanyu Yadav4f6e66447f06
diff --git a/autogpt_platform/frontend/.env.example b/autogpt_platform/frontend/.env.exampleindex 0660979013..038c343f98 100644--- a/autogpt_platform/frontend/.env.example+++ b/autogpt_platform/frontend/.env.example@@ -1,4 +1,5 @@FRONTEND_BASE_URL=http://localhost:3000+NEXT_PUBLIC_FRONTEND_BASE_URL=http://localhost:3000NEXT_PUBLIC_AUTH_CALLBACK_URL=http://localhost:8006/auth/callbackNEXT_PUBLIC_AGPT_SERVER_URL=http://localhost:8006/apidiff --git a/autogpt_platform/frontend/src/app/api/mutators/custom-mutator.ts b/autogpt_platform/frontend/src/app/api/mutators/custom-mutator.tsindex f0fdbc308c..53b899dfd5 100644--- a/autogpt_platform/frontend/src/app/api/mutators/custom-mutator.ts+++ b/autogpt_platform/frontend/src/app/api/mutators/custom-mutator.ts@@ -1,4 +1,4 @@-const BASE_URL = "/api/proxy"; // Sending request via nextjs Server+const BASE_URL = `${process.env.NEXT_PUBLIC_FRONTEND_BASE_URL}/api/proxy`; // Sending request via nextjs Serverconst getBody = <T>(c: Response | Request): Promise<T> => {const contentType = c.headers.get("content-type");