Refactored schemas, naming, and instantiation files.
This commit is contained in:
@@ -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;
|
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user