mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-07-10 12:37:16 +02:00
web: always use prod urls for testing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user