From ffcb9cab7772820e70f7acb361810a544689a3f8 Mon Sep 17 00:00:00 2001 From: Joong-Won Seo Date: Tue, 21 Nov 2023 13:09:15 +0100 Subject: [PATCH] somehow localhost doesn't work, but 127.0.0.1 or python does --- nextjs/src/server/api/routers/mainRouter.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nextjs/src/server/api/routers/mainRouter.ts b/nextjs/src/server/api/routers/mainRouter.ts index 8aa72d5..38d95ef 100644 --- a/nextjs/src/server/api/routers/mainRouter.ts +++ b/nextjs/src/server/api/routers/mainRouter.ts @@ -6,8 +6,7 @@ import axios from "axios"; import qs from "qs"; const LOCAL_BACKEND_URI = "http://python:8002/v1/api/"; -const BACKEND_URI = "http://localhost:8002/v1/api/"; -const STREAM_BACKEND_URI = "http://localhost:8002/v1/stream_api/"; +const BACKEND_URI = "http://python:8002/v1/api/"; export const mainRouter = createTRPCRouter({ get_project_directory: publicProcedure.query(async () => {