Merge pull request #1046 from spotify/rugvip/config

packages/core-api: add ConfigApi + implementation and createApp option
This commit is contained in:
Patrik Oldsberg
2020-05-31 19:02:41 +02:00
committed by GitHub
12 changed files with 566 additions and 17 deletions
+12
View File
@@ -24,6 +24,18 @@ import apis from './apis';
const app = createApp({
apis,
plugins: Object.values(plugins),
configLoader: async () => ({
app: {
title: 'Backstage Example App',
baseUrl: 'http://localhost:3000',
},
backend: {
baseUrl: 'http://localhost:7000',
},
organization: {
name: 'Spotify',
},
}),
});
const AppProvider = app.getProvider();