Skip to content

Commit

Permalink
Fix playwright test build
Browse files Browse the repository at this point in the history
  • Loading branch information
hvangeffen committed Sep 20, 2024
1 parent aaef16a commit 7242939
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vite-pwa.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ function downloadImage(url: string, location: string) {

async function getWebOcConfig(env: Record<string, string>) {
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
Expand Down

0 comments on commit 7242939

Please sign in to comment.