This commit is contained in:
Alex
2023-03-01 14:16:11 +00:00
parent 8bd52d4c05
commit 63e35fbdbc
4 changed files with 7 additions and 169 deletions

View File

@@ -23,7 +23,9 @@ export function fetchAnswerApi(
selectedDocs.model +
'/';
return fetch('https://docsapi.arc53.com/api/answer', {
const apiHost = import.meta.env.VITE_API_HOST || 'https://docsapi.arc53.com';
return fetch(apiHost + '/api/answer', {
method: 'POST',
headers: {
'Content-Type': 'application/json',

View File

@@ -63,7 +63,8 @@ export function setLocalRecentDocs(doc: Doc): void {
'/' +
doc.model +
'/';
fetch('https://docsapi.arc53.com/api/docs_check', {
const apiHost = import.meta.env.VITE_API_HOST || 'https://docsapi.arc53.com';
fetch(apiHost + '/api/docs_check', {
method: 'POST',
headers: {
'Content-Type': 'application/json',