Merge feature/cadastro-feature/login

This commit is contained in:
Matheus Albino Brunhara
2022-05-02 19:42:31 -05:00
16 changed files with 451 additions and 318 deletions

View File

@@ -1,13 +1,24 @@
<<<<<<< HEAD
import environment from "../constants/environment";
const getBaseUrl = (): string => {
// const { hostname } = window.location;
=======
import environment from "../environments/environment";
function getBaseUrl() {
const { hostname } = window.location;
>>>>>>> 561e8597e0534b18b8dfbf5b454030b6d9a0cdbc
const { url } = environment;
let apiUrl = null;
<<<<<<< HEAD
// if (hostname === 'projeto-integrado-f-web.herokuapp.com') {
=======
// if (hostname === '') {
>>>>>>> 561e8597e0534b18b8dfbf5b454030b6d9a0cdbc
// apiUrl = url.prod;
// } else {
apiUrl = url.local;