web: always use prod urls for testing

This commit is contained in:
Abdullah Atta
2026-03-07 12:47:28 +05:00
parent dfbe2d0f0f
commit dbeabea6c5

View File

@@ -29,6 +29,7 @@ import Config from "../utils/config";
import { FileStorage } from "../interfaces/fs";
function getHostUrl(hostUrl: keyof typeof hosts, defaultUrl: string) {
if (IS_TESTING) return defaultUrl;
const envValue = import.meta.env[`NN_${hostUrl}`];
return envValue || defaultUrl;
}