build(electron): use live origin http protocol instead of file:// (#8464)

fix AF-1428
This commit is contained in:
pengx17
2024-10-15 05:42:52 +00:00
parent 9970138009
commit 3d3864fa5b
6 changed files with 55 additions and 121 deletions
@@ -30,5 +30,7 @@ const API_URL_MAPPING = {
internal: `https://insider.affine.pro`,
};
export const DEV_SERVER_URL = process.env.DEV_SERVER_URL;
export const CLOUD_BASE_URL =
process.env.DEV_SERVER_URL || API_URL_MAPPING[buildType];