This commit is contained in:
Kenneth Jannette
2024-02-09 13:49:59 -06:00
parent ace0cc89e5
commit 896c28fb24
5 changed files with 13 additions and 5 deletions

3
.env.development Normal file
View File

@@ -0,0 +1,3 @@
REACT_APP_URL_DEV=localhost:3000
REACT_APP_API_DEV=http://localhost:4000

2
.env.production Normal file
View File

@@ -0,0 +1,2 @@
REACT_APP_URL_PROD=https://www.novodraft.ai
REACT_APP_API_PROD=https://www.novodraft.ai:3001

BIN
src/.DS_Store vendored

Binary file not shown.

BIN
src/Assets/.DS_Store vendored

Binary file not shown.

View File

@@ -69,13 +69,16 @@ const UploadModal = (props) => {
setFileToParse(file);
setFileChanged(true);
}
//
async function uploadFile(file) {
try {
const response = await fetch(`${apiUrl}/v1/parseNewDoc`, {
method: "POST",
body: file,
});
const response = await fetch(
`https://www.novodraft.ai:3001/v1/parseNewDoc`,
{
method: "POST",
body: file,
}
);
const res = response;
return res;
} catch (error) {