feat: limity skupinových objednávek nastavitelné přes env
CI / Generate TypeScript types (push) Successful in 12s
CI / Server unit tests (push) Successful in 25s
CI / Build server (push) Successful in 30s
CI / Build client (push) Successful in 39s
CI / Playwright E2E tests (push) Successful in 3m55s
CI / Build and push Docker image (push) Successful in 49s
CI / Notify (push) Successful in 2s

This commit is contained in:
batmanisko committed 2026-09-24 09:18:56 +02:00
1 parent 076b8db179
commit 103445dba8
15 files changed
+386 -28

No files matched your search

+3 -1
View File
@@ -10,6 +10,7 @@ import { getConfig } from '../../types/gen/sdk.gen';
import { getToken } from './Utils';
import { toast } from 'react-toastify';
import * as Sentry from '@sentry/react';
import { setGroupLimits } from './utils/appConfig';
client.setConfig({
auth: () => getToken(),
@@ -17,8 +18,9 @@ client.setConfig({
});
// Sentry se inicializuje až podle runtime konfigurace ze serveru (bez DSN zůstává vypnuté).
// Klient je statický build, takže DSN nejde zapéct při buildu — server ho zná z env.
// Klient je statický build, takže DSN ani limity nejde zapéct při buildu — server je zná z env.
getConfig().then(({ data }) => {
setGroupLimits(data?.limits?.group);
if (data?.sentry.dsn) {
Sentry.init({
dsn: data.sentry.dsn,