♻️ refactor: Refactor API endpoints to use dynamic API prefix from environment variables
- Updated all service files to replace hardcoded API paths with `${import.meta.env.VITE_API_PREFIX}` for better configurability.
- Ensured consistency across user, common, and gateway services by applying the new API prefix format.
- Removed unnecessary comments and maintained ESLint disable directives where applicable.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# API base URL
|
||||
VITE_API_BASE_URL=
|
||||
# API prefix path
|
||||
VITE_API_PREFIX=
|
||||
|
||||
# CDN URL for static assets
|
||||
VITE_CDN_URL=https://cdn.jsdmirror.com
|
||||
|
||||
Reference in New Issue
Block a user