From 724293911ba7b12e1978fb9e298dbddb7e5d9058 Mon Sep 17 00:00:00 2001 From: hvangeffen Date: Fri, 20 Sep 2024 11:01:10 +0200 Subject: [PATCH] Fix playwright test build --- vite-pwa.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite-pwa.config.ts b/vite-pwa.config.ts index afbfca1b..7c5b37ab 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