EQMS-1414 Fix pod print issues (#7739)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2025-01-21 14:04:55 +07:00 committed by GitHub
parent 1fceb1822a
commit b08af3d995
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,9 @@
FROM hardcoreeng/base
# Chromium hangs when usging LD_PRELOAD and MALLOC_CONF
ENV LD_PRELOAD=
ENV MALLOC_CONF=
# We don't need the standalone Chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
# Set executable path for puppeteer

View File

@ -103,7 +103,7 @@
{#await srcRef then src}
{#if !isLoading}
{#if src === ''}
{#if src === '' || src === undefined}
<div class="centered">
<Label label={presentation.string.FailedToPreview} />
</div>

View File

@ -38,6 +38,7 @@
},
"dependencies": {
"svelte": "^4.2.19",
"@hcengineering/analytics": "^0.6.0",
"@hcengineering/platform": "^0.6.11",
"@hcengineering/core": "^0.6.32",
"@hcengineering/presentation": "^0.6.3",

View File

@ -4,6 +4,7 @@
-->
<script lang="ts">
import { Analytics } from '@hcengineering/analytics'
import { Doc, type Blob, type Ref } from '@hcengineering/core'
import presentation, { PDFViewer, createQuery, getClient } from '@hcengineering/presentation'
import guest, { PublicLink, createPublicLink } from '@hcengineering/guest'
@ -55,6 +56,7 @@
isLoading = false
},
(err) => {
Analytics.handleError(err)
console.error(err)
isLoading = false
}
@ -65,6 +67,7 @@
}
},
(err) => {
Analytics.handleError(err)
console.error(err)
isLoading = false
}

View File

@ -3,4 +3,8 @@ FROM hardcoreeng/print-base:v20250113a
WORKDIR /usr/src/app
COPY bundle/bundle.js ./
# Chromium hangs when usging LD_PRELOAD and MALLOC_CONF
ENV LD_PRELOAD=
ENV MALLOC_CONF=
CMD [ "dumb-init", "node", "bundle.js" ]