packages/app: add mock config loader and use in welcome plugin

This commit is contained in:
Patrik Oldsberg
2020-05-28 14:26:21 +02:00
parent bdf32a00a0
commit a115bd6331
3 changed files with 27 additions and 3 deletions
+12
View File
@@ -29,6 +29,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();