Moves API URL to env config files for ease of testing and production deployments

This commit is contained in:
aarbit 2024-06-25 15:30:55 -05:00
parent 1180a8c457
commit 66a9dbea5c
3 changed files with 3 additions and 3 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
VITE_API_URL=http://localhost:8080

1
.env.production Normal file
View File

@ -0,0 +1 @@
VITE_API_URL=https://ppapi.halfbinary.net

View File

@ -1,4 +1,2 @@
//const hostName = "http://192.168.187.129:8082"
//const hostName = "http://localhost:8080"
const hostName = "http://192.168.187.118:8080"
const hostName = import.meta.env.VITE_API_URL
export default hostName