more
This commit is contained in:
3
.env.development
Normal file
3
.env.development
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
REACT_APP_URL_DEV=localhost:3000
|
||||||
|
REACT_APP_API_DEV=http://localhost:4000
|
||||||
|
|
||||||
2
.env.production
Normal file
2
.env.production
Normal 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
BIN
src/.DS_Store
vendored
Binary file not shown.
BIN
src/Assets/.DS_Store
vendored
BIN
src/Assets/.DS_Store
vendored
Binary file not shown.
@@ -69,13 +69,16 @@ const UploadModal = (props) => {
|
|||||||
setFileToParse(file);
|
setFileToParse(file);
|
||||||
setFileChanged(true);
|
setFileChanged(true);
|
||||||
}
|
}
|
||||||
//
|
|
||||||
async function uploadFile(file) {
|
async function uploadFile(file) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${apiUrl}/v1/parseNewDoc`, {
|
const response = await fetch(
|
||||||
|
`https://www.novodraft.ai:3001/v1/parseNewDoc`,
|
||||||
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: file,
|
body: file,
|
||||||
});
|
}
|
||||||
|
);
|
||||||
const res = response;
|
const res = response;
|
||||||
return res;
|
return res;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user