From 3de4eab2a0dfbf9f593d73b9dde6bca1d9df2279 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 9 Aug 2024 12:18:41 +0700 Subject: [PATCH] fix: broken app due to incorrect api path (#3316) --- web/containers/WaitingCortexModal/index.tsx | 4 ++-- web/helpers/atoms/AppConfig.atom.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/containers/WaitingCortexModal/index.tsx b/web/containers/WaitingCortexModal/index.tsx index 8b7161a28..5c4ebdd25 100644 --- a/web/containers/WaitingCortexModal/index.tsx +++ b/web/containers/WaitingCortexModal/index.tsx @@ -54,11 +54,11 @@ const WaitingForCortexModal: React.FC = () => {

API Server starting at{' '} - {host}/api + {host.replace('/v1', '')}/api

diff --git a/web/helpers/atoms/AppConfig.atom.ts b/web/helpers/atoms/AppConfig.atom.ts index f0c0cc69d..9b8cba186 100644 --- a/web/helpers/atoms/AppConfig.atom.ts +++ b/web/helpers/atoms/AppConfig.atom.ts @@ -30,4 +30,4 @@ export const didShowMigrationWarningAtom = atomWithStorage( } ) -export const hostAtom = atom('http://127.0.0.1:1338') +export const hostAtom = atom('http://127.0.0.1:1338/v1')