gotcha(gql): if you just import the type the config library doesnt work 🤷

This commit is contained in:
blam
2020-08-05 07:27:51 +02:00
parent b9c21c6fba
commit 11de4c5f4b
3 changed files with 881 additions and 109 deletions
-1
View File
@@ -88,7 +88,6 @@ async function main() {
const configs = await loadConfig({ shouldReadSecrets: true });
const configReader = ConfigReader.fromConfigs(configs);
const createEnv = makeCreateEnv(configs);
const healthcheckEnv = useHotMemoize(module, () => createEnv('healthcheck'));
const catalogEnv = useHotMemoize(module, () => createEnv('catalog'));
const scaffolderEnv = useHotMemoize(module, () => createEnv('scaffolder'));
+6 -2
View File
@@ -30,10 +30,14 @@
*/
import { createRouter } from '@backstage/plugin-graphql-backend';
import type { PluginEnvironment } from '../types';
import { PluginEnvironment } from '../types';
export default async function createPlugin({ logger }: PluginEnvironment) {
export default async function createPlugin({
logger,
config,
}: PluginEnvironment) {
return await createRouter({
logger,
config,
});
}
+875 -106
View File
File diff suppressed because it is too large Load Diff