Skip to content

Commit

Permalink
add missed link preview url to env config (#7704)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-tingaikin authored Jan 18, 2025
1 parent f728c40 commit 9daab4d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pods/front/src/__start.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2023 Hardcore Engineering Inc.
// Copyright © 2023, 2025 Hardcore Engineering Inc.
//

import { Analytics } from '@hcengineering/analytics'
Expand Down Expand Up @@ -44,6 +44,7 @@ startFront(metricsContext, {
DESKTOP_UPDATES_URL: process.env.DESKTOP_UPDATES_URL,
DESKTOP_UPDATES_CHANNEL: process.env.DESKTOP_UPDATES_CHANNEL,
ANALYTICS_COLLECTOR_URL: process.env.ANALYTICS_COLLECTOR_URL,
LINK_PREVIEW_URL: process.env.LINK_PREVIEW_URL,
AI_URL: process.env.AI_URL,
TELEGRAM_BOT_URL: process.env.TELEGRAM_BOT_URL,
STATS_URL: process.env.STATS_API ?? process.env.STATS_URL,
Expand Down
4 changes: 3 additions & 1 deletion server/front/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Copyright © 2020, 2021 Anticrm Platform Contributors.
// Copyright © 2021 Hardcore Engineering Inc.
// Copyright © 2021, 2025 Hardcore Engineering Inc.
//
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may
Expand Down Expand Up @@ -258,6 +258,7 @@ export function start (
brandingUrl?: string
previewConfig: string
uploadConfig: string
linkPreviewUrl?: string
pushPublicKey?: string
disableSignUp?: string
},
Expand Down Expand Up @@ -307,6 +308,7 @@ export function start (
GMAIL_URL: config.gmailUrl,
CALENDAR_URL: config.calendarUrl,
COLLABORATOR: config.collaborator,
LINK_PREVIEW_URL: config.linkPreviewUrl,
COLLABORATOR_URL: config.collaboratorUrl,
BRANDING_URL: config.brandingUrl,
PREVIEW_CONFIG: config.previewConfig,
Expand Down
7 changes: 5 additions & 2 deletions server/front/src/starter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Copyright © 2020, 2021 Anticrm Platform Contributors.
// Copyright © 2021, 2024 Hardcore Engineering Inc.
// Copyright © 2021-2025 Hardcore Engineering Inc.
//
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may
Expand Down Expand Up @@ -109,6 +109,8 @@ export function startFront (ctx: MeasureContext, extraConfig?: Record<string, st

const brandingUrl = process.env.BRANDING_URL

const linkPreviewUrl = process.env.LINK_PREVIEW_URL

setMetadata(serverToken.metadata.Secret, serverSecret)

const disableSignUp = process.env.DISABLE_SIGNUP
Expand All @@ -130,7 +132,8 @@ export function startFront (ctx: MeasureContext, extraConfig?: Record<string, st
previewConfig,
uploadConfig,
pushPublicKey,
disableSignUp
disableSignUp,
linkPreviewUrl
}
console.log('Starting Front service with', config)
const shutdown = start(ctx, config, SERVER_PORT, extraConfig)
Expand Down

0 comments on commit 9daab4d

Please sign in to comment.