You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 3 instances in which the production URL can be obtained:
src/hooks/useSiteUrlHook.jsx - very legacy code that uses local storage, should be removed after it is confirmed that there are no usages
src/hooks/settingsHooks/useUrlHook.jsx - somewhat legacy code, used on the Settings page, should be replaced because it uses a user-defined value
src/hooks/settingsHooks/useGetSiteUrl.ts - newest code introduced as part of review requests, should be updated to use the new /v2/sites/:siteName/siteUrl endpoint.
All usages should be consolidated into the 3rd version for consistency.
The text was updated successfully, but these errors were encountered:
There are 3 instances in which the production URL can be obtained:
src/hooks/useSiteUrlHook.jsx
- very legacy code that uses local storage, should be removed after it is confirmed that there are no usagessrc/hooks/settingsHooks/useUrlHook.jsx
- somewhat legacy code, used on the Settings page, should be replaced because it uses a user-defined valuesrc/hooks/settingsHooks/useGetSiteUrl.ts
- newest code introduced as part of review requests, should be updated to use the new/v2/sites/:siteName/siteUrl
endpoint.All usages should be consolidated into the 3rd version for consistency.
The text was updated successfully, but these errors were encountered: