Makes the webpack build use relative paths to allow for deploying on web subdirectories
Some checks are pending
build-docker / Build Image (push) Waiting to run

This commit is contained in:
mrkmntal 2026-04-08 21:31:56 -04:00
commit ea8c3bf602
10 changed files with 74 additions and 36 deletions

View file

@ -11,6 +11,7 @@
import { safeJson } from './fetch.mjs';
import { debugFlag } from './debug.mjs';
import { withBasePath } from './base-path.mjs';
/**
* Parse MapClick date format to JavaScript Date
@ -178,7 +179,7 @@ const convertMapClickIcon = (weatherImage) => {
return null;
}
return `/icons/land/${timeOfDay}/${condition}?size=medium`;
return withBasePath(`icons/land/${timeOfDay}/${condition}?size=medium`);
};
/**