Refactored schemas, naming, and instantiation files.

This commit is contained in:
2022-04-01 10:27:58 -05:00
parent 8231f9db67
commit 19bbca36ca
12 changed files with 77 additions and 99 deletions

View File

@@ -1,11 +0,0 @@
const prod = {
env: "production",
api_host: ""
};
const dev = {
env: "development",
api_host: "http://localhost:5000", // web server localhost port
};
// export the appropriate environment
export default process.env.NODE_ENV === "production" ? prod : dev;

View File

@@ -16,7 +16,7 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"start": "NODE_ENV=development API_HOST=http://localhost:5000 react-scripts start",
"build": "../scripts/build.py",
"test": "react-scripts test",
"eject": "react-scripts eject"
@@ -43,4 +43,4 @@
"eslint": "^8.12.0",
"eslint-plugin-react": "^7.29.4"
}
}
}