fix: env variables
Some checks failed
CI / build-and-test (pull_request) Failing after 11m37s

This commit is contained in:
Tobias Klemp
2025-12-07 16:29:37 +01:00
parent e1f1e867d6
commit 6581cff44f
2 changed files with 7 additions and 11 deletions

View File

@@ -9,10 +9,7 @@
type TolgeeStaticData,
} from '@tolgee/svelte'
import { TopBar } from '$lib/components/ui/topBar'
import {
PUBLIC_TOLGEE_API_KEY,
PUBLIC_TOLGEE_API_URL,
} from '$env/static/public'
import { env } from '$env/dynamic/public'
import type { Snippet } from 'svelte'
let { children, data }: { data: TolgeeStaticData; children: Snippet } =
@@ -32,9 +29,9 @@
.init({
language: 'de',
// // for development
// apiUrl: PUBLIC_TOLGEE_API_URL,
// apiKey: PUBLIC_TOLGEE_API_KEY,
// for development
apiUrl: env.PUBLIC_TOLGEE_API_URL,
apiKey: env.PUBLIC_TOLGEE_API_KEY,
// for production
staticData: {