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);
|
||||
setFileChanged(true);
|
||||
}
|
||||
//
|
||||
|
||||
async function uploadFile(file) {
|
||||
try {
|
||||
const response = await fetch(`${apiUrl}/v1/parseNewDoc`, {
|
||||
const response = await fetch(
|
||||
`https://www.novodraft.ai:3001/v1/parseNewDoc`,
|
||||
{
|
||||
method: "POST",
|
||||
body: file,
|
||||
});
|
||||
}
|
||||
);
|
||||
const res = response;
|
||||
return res;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user