diff --git a/playwright-ct.config.ts b/playwright-ct.config.ts index 58a1899a8..d8afda339 100644 --- a/playwright-ct.config.ts +++ b/playwright-ct.config.ts @@ -1,6 +1,6 @@ import { defineConfig, devices } from '@playwright/experimental-ct-vue' import getViteConfig from './vite.config' -const viteConfig = getViteConfig({ +const viteConfig = await getViteConfig({ command: 'build', mode: 'test', }) diff --git a/vite-pwa.config.ts b/vite-pwa.config.ts index afbfca1b6..7c5b37ab1 100644 --- a/vite-pwa.config.ts +++ b/vite-pwa.config.ts @@ -20,7 +20,10 @@ function downloadImage(url: string, location: string) { async function getWebOcConfig(env: Record) { try { - const provider = new PiWebserviceProvider(env.VITE_FEWS_WEBSERVICES_URL) + const webserivcesUrl = env.VITE_FEWS_WEBSERVICES_URL + if (!webserivcesUrl) return + + const provider = new PiWebserviceProvider(webserivcesUrl) const response = await provider.getWebOcConfiguration() const config = response?.general if (!config) return