tsk-11: Make URLs more dynamic (#15)
Closes #11 Reviewed-on: phoenix/textsender#15
This commit was merged in pull request #15.
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
VITE_AUTH_URL="http://localhost:9080"
|
||||||
|
VITE_API_URL="http://localhost:9081"
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
VITE_AUTH_URL="http://localhost:9080"
|
||||||
|
VITE_API_URL="http://localhost:9081"
|
||||||
@@ -22,3 +22,7 @@ dist-ssr
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
|
# Environment
|
||||||
|
.env.production
|
||||||
|
.env.development
|
||||||
|
|||||||
Generated
+13
@@ -8,6 +8,7 @@
|
|||||||
"name": "textsender",
|
"name": "textsender",
|
||||||
"version": "0.0.8",
|
"version": "0.0.8",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"dotenv": "^17.4.2",
|
||||||
"react": "^19.2.7",
|
"react": "^19.2.7",
|
||||||
"react-dom": "^19.2.7",
|
"react-dom": "^19.2.7",
|
||||||
"react-router-dom": "^7.18.0"
|
"react-router-dom": "^7.18.0"
|
||||||
@@ -1219,6 +1220,18 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/dotenv": {
|
||||||
|
"version": "17.4.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz",
|
||||||
|
"integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==",
|
||||||
|
"license": "BSD-2-Clause",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://dotenvx.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/electron-to-chromium": {
|
"node_modules/electron-to-chromium": {
|
||||||
"version": "1.5.380",
|
"version": "1.5.380",
|
||||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.380.tgz",
|
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.380.tgz",
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"format:check": "npx prettier --check ."
|
"format:check": "npx prettier --check ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"dotenv": "^17.4.2",
|
||||||
"react": "^19.2.7",
|
"react": "^19.2.7",
|
||||||
"react-dom": "^19.2.7",
|
"react-dom": "^19.2.7",
|
||||||
"react-router-dom": "^7.18.0"
|
"react-router-dom": "^7.18.0"
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
export const AUTH_API_BASE_URL = 'http://localhost:9080';
|
export const AUTH_API_BASE_URL = import.meta.env.VITE_AUTH_URL;
|
||||||
export const API_BASE_URL = 'http://localhost:9081';
|
export const API_BASE_URL = import.meta.env.VITE_API_URL;
|
||||||
|
|||||||
Reference in New Issue
Block a user