Skip to content

Commit

Permalink
Fix build of backend plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauricio Martinez committed Nov 8, 2023
1 parent a777fc8 commit f41f0d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 6 additions & 0 deletions packages/form-data-backend/src/service/router.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { getVoidLogger } from '@backstage/backend-common';
import { ConfigReader } from '@backstage/config';
import express from 'express';
import request from 'supertest';
import { exampleRouter } from '../providers';
Expand All @@ -12,6 +13,11 @@ describe('createRouter', () => {
const router = await createRouter(
{
logger: getVoidLogger(),
config: new ConfigReader({
app: {
baseUrl: 'http://example.com/extra-path',
},
}),
},
[
{
Expand Down
4 changes: 3 additions & 1 deletion packages/form-data-backend/src/service/standaloneServer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createServiceBuilder } from '@backstage/backend-common';
import { createServiceBuilder, loadBackendConfig } from '@backstage/backend-common';
import { Server } from 'http';
import { Logger } from 'winston';
import { exampleRouter } from '../providers';
Expand All @@ -14,10 +14,12 @@ export async function startStandaloneServer(
options: ServerOptions,
): Promise<Server> {
const logger = options.logger.child({ service: 'form-data-backend' });
const config = await loadBackendConfig({ logger, argv: process.argv });
logger.debug('Starting application server...');
const router = await createRouter(
{
logger,
config,
},
[
{
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16868,11 +16868,6 @@ zod-to-json-schema@~3.18.0:
resolved "https://registry.yarnpkg.com/zod-to-json-schema/-/zod-to-json-schema-3.18.2.tgz#ce540062c6b57e5cc170aae57dad5eeb76d64f7b"
integrity sha512-Vv1emSad6nJGRJUD/cdVxSgxtT3PnaUiHHZ+PxDU5vx+klM9eDekuIj6lO+tZTbATK+6ktJfY2C+WXn2mMX3Jw==

zod@^3.18.0:
version "3.22.2"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.2.tgz#3add8c682b7077c05ac6f979fea6998b573e157b"
integrity sha512-wvWkphh5WQsJbVk1tbx1l1Ly4yg+XecD+Mq280uBGt9wa5BKSWf4Mhp6GmrkPixhMxmabYY7RbzlwVP32pbGCg==

zod@~3.18.0:
version "3.18.0"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.18.0.tgz#2eed58b3cafb8d9a67aa2fee69279702f584f3bc"
Expand Down

0 comments on commit f41f0d1

Please sign in to comment.