From 509f7c188c2b643a181583aa165b1284733ea9dd Mon Sep 17 00:00:00 2001 From: Nial <48334675+nmcc1212@users.noreply.github.com> Date: Fri, 24 May 2024 14:38:18 +0100 Subject: [PATCH] change to localhost --- .github/workflows/build-api.yml | 1 + next/news-aggregation/src/components/newsList.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-api.yml b/.github/workflows/build-api.yml index 1db545e..8f05afc 100644 --- a/.github/workflows/build-api.yml +++ b/.github/workflows/build-api.yml @@ -27,6 +27,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . + platforms: linux/amd64,linux/arm64 file: newAPI/Dockerfile push: true tags: ghcr.io/nmcc1212/mongo-api:latest \ No newline at end of file diff --git a/next/news-aggregation/src/components/newsList.tsx b/next/news-aggregation/src/components/newsList.tsx index 014e695..38b9a77 100644 --- a/next/news-aggregation/src/components/newsList.tsx +++ b/next/news-aggregation/src/components/newsList.tsx @@ -25,7 +25,7 @@ function NewsList(props: Readonly<{ try { setIsLoading(true); if (Array.isArray(props.rssFeedUrls)) { - const response = await axios.post('http://100.88.40.21:50111/api/fetchNews', { + const response = await axios.post('http://localhost:50111/api/fetchNews', { // const response = await axios.post('http://100.125.70.69:50111/api/fetchNews', { rssFeedUrls: props.rssFeedUrls, });