Add changesets and remove routing changes.
Signed-off-by: Aramis Sennyey <sennyeya@amazon.com>
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
---
|
||||
'@backstage/app-defaults': minor
|
||||
'@backstage/cli': minor
|
||||
'@backstage/config-loader': minor
|
||||
'@backstage/core-app-api': minor
|
||||
'@backstage/core-components': minor
|
||||
---
|
||||
|
||||
Added support for adding CLI options for setting frontend public path (for example, /backstage) as well as the backend url that the front end uses to communicate with the backend. Both of these can now be specified as relative.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/app-defaults': minor
|
||||
---
|
||||
|
||||
Added support for parsing relative backend urls to the api factory. Allows relative backend urls to be specified in config options.
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
'@backstage/cli': minor
|
||||
---
|
||||
|
||||
Adds support for two new CLI options on the `repo build` and `package build` commands. Both options are only available to frontend components. Backend config continues to be supplied at runtime.
|
||||
|
||||
CLI options take precedent over any provided config.
|
||||
|
||||
The new options are meant to add greater support for running the same bundle in multiple environments, ex: test, stage and prod.
|
||||
`--publicPath`: Frontend subroute to host the app on, can be relative or absolute.
|
||||
`--backendUrl`: Backend url that the {backend.basePath}, e.g. /api, endpoint can be reached on. Can be relative or absolute.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/config-loader': minor
|
||||
---
|
||||
|
||||
Added new CLI parsing that overrides all other config options, like env and yaml. Currently supports --publicPath and --backendUrl.
|
||||
@@ -32,7 +32,6 @@ boolean
|
||||
Brex
|
||||
builtins
|
||||
callout
|
||||
CDNs
|
||||
Chai
|
||||
changeset
|
||||
changesets
|
||||
@@ -157,7 +156,6 @@ JaCoCo
|
||||
JavaScript
|
||||
jenkins
|
||||
Jira
|
||||
JWTs
|
||||
jq
|
||||
js
|
||||
json
|
||||
@@ -167,7 +165,6 @@ JWTs
|
||||
Kaewkasi
|
||||
Keyv
|
||||
Knex
|
||||
KPIs
|
||||
kubectl
|
||||
kubernetes
|
||||
kubernetes
|
||||
@@ -397,7 +394,6 @@ widget's
|
||||
winston
|
||||
www
|
||||
WWW
|
||||
XCMetrics
|
||||
XML
|
||||
xyz
|
||||
yaml
|
||||
|
||||
@@ -150,7 +150,7 @@ const AppRouter = app.getRouter();
|
||||
|
||||
const routes = (
|
||||
<FlatRoutes>
|
||||
<Route path="/" element={<Navigate to="catalog" />} />
|
||||
<Route path="/" element={<Navigate to="/catalog" />} />
|
||||
{/* TODO(rubenl): Move this to / once its more mature and components exist */}
|
||||
<Route path="/home" element={<HomepageCompositionRoot />}>
|
||||
{homePage}
|
||||
|
||||
@@ -116,7 +116,7 @@ function getBasePath(configApi: Config) {
|
||||
function readBasePath(configApi: ConfigApi) {
|
||||
let { pathname } = new URL(
|
||||
configApi.getOptionalString('app.baseUrl') ?? '/',
|
||||
document.location.origin, // baseUrl can be specified as just a path
|
||||
'http://dummy.dev', // baseUrl can be specified as just a path
|
||||
);
|
||||
pathname = pathname.replace(/\/*$/, '');
|
||||
return pathname;
|
||||
|
||||
Reference in New Issue
Block a user