diff --git a/apps/stage-pocket/vite.config.ts b/apps/stage-pocket/vite.config.ts index b622bd96c..6d6d96fb2 100644 --- a/apps/stage-pocket/vite.config.ts +++ b/apps/stage-pocket/vite.config.ts @@ -95,7 +95,12 @@ export default defineConfig({ }, plugins: [ - ...isEnvTruthy(process.env.VITE_SKIP_MKCERT ?? '') ? [] : [mkcert()], + ...isEnvTruthy(process.env.VITE_SKIP_MKCERT ?? '') ? [] : [mkcert((() => { + // Workaround: plugin's bundled downloader has a feaxios bug, prefer system mkcert + const command = process.platform === 'win32' ? 'where' : 'which' + try { return { mkcertPath: execSync(`${command} mkcert`, { stdio: 'pipe' }).toString().trim().split(/\r?\n/)[0] } } + catch { return {} } + })())], Info(),