Reset variable backend API with dynamic paths #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes changes to the
frontend/src/constants/backend.constants.ts
file to improve the configuration and resource management. The most important changes include updating the backend URL configuration and modifying the way static assets are referenced.Configuration updates:
BACKEND_URL
to use an environment variable with a fallback to a local server URL.API
constant to dynamically use theBACKEND_URL
.Resource management improvements:
DEFAULT_AVATAR
,DEFAULT_PLACEHOLDER
,MOBILE_SPLASHSCREEN
,DEFAULT_ICON
,DEFAULT_ADAPTIVE_ICON
) to use local assets with a fallback to URLs based on theBACKEND_URL
.This pull request tofrontend/src/constants/backend.constants.ts
includes changes to improve the configuration of backend URLs and asset paths. The most important changes include updating the backend URL configuration to be dynamic and replacing hardcoded asset paths with local asset references.Configuration updates:
frontend/src/constants/backend.constants.ts
: Updated theBACKEND_URL
to be dynamic, using an environment variable or a default local URL.Asset path updates:
frontend/src/constants/backend.constants.ts
: Replaced hardcoded URLs forDEFAULT_AVATAR
,DEFAULT_PLACEHOLDER
,MOBILE_SPLASHSCREEN
,DEFAULT_ICON
, andDEFAULT_ADAPTIVE_ICON
with local asset references.