From 6fb31abd84b22cd464b6b45bf7ca6f83853e8720 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Fri, 29 Dec 2023 18:12:02 +0100 Subject: [PATCH] fix: missing logo images on fresh installation --- Dockerfile | 2 +- backend/src/oauth/provider/genericOidc.provider.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ba3893ad..7b41a6f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,4 +58,4 @@ HEALTHCHECK --interval=10s --timeout=3s CMD curl -f http://localhost:3000/api/he # Application startup # HOSTNAME=0.0.0.0 fixes https://github.com/vercel/next.js/issues/51684. It can be removed as soon as the issue is fixed -CMD cp -rn /tmp/img /opt/app/frontend/public && nginx && PORT=3333 HOSTNAME=0.0.0.0 node frontend/server.js & cd backend && npm run prod \ No newline at end of file +CMD cp -rn /tmp/img/* /opt/app/frontend/public/img && nginx && PORT=3333 HOSTNAME=0.0.0.0 node frontend/server.js & cd backend && npm run prod \ No newline at end of file diff --git a/backend/src/oauth/provider/genericOidc.provider.ts b/backend/src/oauth/provider/genericOidc.provider.ts index 977a9e42..4cff24ee 100644 --- a/backend/src/oauth/provider/genericOidc.provider.ts +++ b/backend/src/oauth/provider/genericOidc.provider.ts @@ -108,7 +108,7 @@ export abstract class GenericOidcProvider implements OAuthProvider { async getUserInfo( token: OAuthToken, query: OAuthCallbackDto, - claim?: string + claim?: string, ): Promise { const idTokenData = this.decodeIdToken(token.idToken); // maybe it's not necessary to verify the id token since it's directly obtained from the provider