fix: broken app due to incorrect api path (#3316)

This commit is contained in:
Louis 2024-08-09 12:18:41 +07:00 committed by GitHub
parent 1f5168d4af
commit 3de4eab2a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -54,11 +54,11 @@ const WaitingForCortexModal: React.FC = () => {
<p className="mt-[2px] text-[hsla(var(--text-secondary))]">
API Server starting at{' '}
<a
href={`${host}/api`}
href={`${host.replace('/v1', '')}/api`}
target="_blank"
className="text-[hsla(var(--app-link))] hover:underline"
>
{host}/api
{host.replace('/v1', '')}/api
</a>
<br />
<br />

View File

@ -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')