fix env/config names

main
Cameron Clough 2022-03-21 23:40:12 +00:00
parent 1db5a32ef1
commit f722aec648
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
3 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,4 @@
API_URL=http://localhost:8080
REACT_APP_PUBLIC_URL=http://localhost:3000
REACT_APP_API_URL=http://localhost:8080
REACT_APP_WEBSITE_NAME="RetroPilot Connect - Development"

View File

@ -1,4 +1,4 @@
PUBLIC_URL=https://connect.retropilot.org
API_URL=https://api.retropilot.org
REACT_APP_PUBLIC_URL=https://connect.retropilot.org
REACT_APP_API_URL=https://api.retropilot.org
REACT_APP_WEBSITE_NAME="RetroPilot Connect"

View File

@ -2,12 +2,12 @@ const config = {
/**
* The address at which the website is hosted.
*/
publicUrl: process.env.PUBLIC_URL,
publicUrl: process.env.REACT_APP_PUBLIC_URL,
/**
* The address at which the API is accessible.
*/
apiUrl: process.env.API_URL,
apiUrl: process.env.REACT_APP_API_URL,
/**
* The name displayed in the website title.
@ -15,4 +15,6 @@ const config = {
websiteName: process.env.REACT_APP_WEBSITE_NAME,
};
console.log({ config });
export default config;