diff --git a/packages/hoppscotch-backend/src/auth/helper.ts b/packages/hoppscotch-backend/src/auth/helper.ts index e0ff76fe2..339d7edca 100644 --- a/packages/hoppscotch-backend/src/auth/helper.ts +++ b/packages/hoppscotch-backend/src/auth/helper.ts @@ -7,7 +7,6 @@ import * as cookie from 'cookie'; import { AUTH_PROVIDER_NOT_SPECIFIED, COOKIES_NOT_FOUND } from 'src/errors'; import { throwErr } from 'src/utils'; import { ConfigService } from '@nestjs/config'; -import { loadInfraConfiguration } from 'src/infra-config/helper'; enum AuthTokenType { ACCESS_TOKEN = 'access_token', diff --git a/packages/hoppscotch-backend/src/infra-config/helper.ts b/packages/hoppscotch-backend/src/infra-config/helper.ts index 66ff9910e..f01bae6ba 100644 --- a/packages/hoppscotch-backend/src/infra-config/helper.ts +++ b/packages/hoppscotch-backend/src/infra-config/helper.ts @@ -25,7 +25,7 @@ export async function loadInfraConfiguration() { return { INFRA: environmentObject }; } catch (error) { // Prisma throw error if 'Can't reach at database server' OR 'Table does not exist' - // We're not throwing error here because we want to allow the app to run 'pnpm install' + // Reason for not throwing error is, we want successful build during 'postinstall' and generate dist files return { INFRA: {} }; } }