Add bash url env variable in FE

This commit is contained in:
2025-07-07 01:39:56 +05:30
parent e85717be22
commit 5f25b81b35
3 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1 @@
VITE_BASE_URL=http://localhost:8005

View File

@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?
.env

View File

@ -1,4 +1,4 @@
export const BASE_URL = "http://localhost:8005";
export const BASE_URL = import.meta.env.VITE_BASE_URL || "http://localhost:8005";
// utils/apiPaths.js
export const API_PATHS = {