diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..cd5d6a6 --- /dev/null +++ b/.env.development @@ -0,0 +1,3 @@ +REACT_APP_URL_DEV=localhost:3000 +REACT_APP_API_DEV=http://localhost:4000 + diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..461b3c8 --- /dev/null +++ b/.env.production @@ -0,0 +1,2 @@ +REACT_APP_URL_PROD=https://www.novodraft.ai +REACT_APP_API_PROD=https://www.novodraft.ai:3001 \ No newline at end of file diff --git a/src/.DS_Store b/src/.DS_Store deleted file mode 100644 index fc1de4d..0000000 Binary files a/src/.DS_Store and /dev/null differ diff --git a/src/Assets/.DS_Store b/src/Assets/.DS_Store deleted file mode 100644 index b220e11..0000000 Binary files a/src/Assets/.DS_Store and /dev/null differ diff --git a/src/Components/Modals/UploadModal.js b/src/Components/Modals/UploadModal.js index f179b96..d10ee7a 100644 --- a/src/Components/Modals/UploadModal.js +++ b/src/Components/Modals/UploadModal.js @@ -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) {