update doc.

Signed-off-by: Aramis Sennyey <sennyeya@amazon.com>
This commit is contained in:
Aramis Sennyey
2022-11-28 13:44:51 -05:00
parent f2ea849af1
commit b045e99834
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/core-app-api': patch
---
Apps will now detect when a relative `backend.baseUrl` or `app.baseUrl` is provided and update it to be a full URL. This means that you can provide relative URLs and they will be resolved as expected across the application.
Apps will now rewrite `app.baseUrl` and `backend.baseUrl` to match `location.origin` when `app.baseUrl` is the same as `backend.baseUrl`. This will help reduce the number of front end builds you have to do with a specific config.
+1 -1
View File
@@ -168,7 +168,7 @@ function useConfigLoader(
* We only want to override the URLs with the document origin when the URLs match
* and are defined. We use getOptionalString here to not throw when the app.baseUrl
* and backend.baseUrl are not defined. If they are defined but not well formatted URLs
* the above resolveRelativeUrl() method will throw.
* the above getRelativeUrl() method will throw.
*/
if (
configReader.getOptionalString('app.baseUrl') &&