refactor: support proxy option
This commit is contained in:
3
bin/helpers/merge.ts
vendored
3
bin/helpers/merge.ts
vendored
@@ -24,6 +24,7 @@ export async function mergeConfig(url: string, options: PakeAppOptions, tauriCon
|
||||
name,
|
||||
resizable = true,
|
||||
inject,
|
||||
proxyUrl,
|
||||
} = options;
|
||||
|
||||
const { platform } = process;
|
||||
@@ -189,6 +190,8 @@ export async function mergeConfig(url: string, options: PakeAppOptions, tauriCon
|
||||
await fsExtra.writeFile(injectFilePath, '');
|
||||
}
|
||||
|
||||
tauriConf.pake.proxy_url = proxyUrl || "";
|
||||
|
||||
// Save config file.
|
||||
const platformConfigPaths: PlatformMap = {
|
||||
win32: 'tauri.windows.conf.json',
|
||||
|
||||
Reference in New Issue
Block a user