()
| 81 | // In packaged app, ALWAYS use production URL to prevent localhost leaking into releases |
| 82 | // In dev mode, allow override via MAIN_VITE_API_URL env variable |
| 83 | export function getBaseUrl(): string { |
| 84 | if (app.isPackaged) { |
| 85 | return "https://21st.dev" |
| 86 | } |
| 87 | return import.meta.env.MAIN_VITE_API_URL || "https://21st.dev" |
| 88 | } |
| 89 | |
| 90 | export function getAppUrl(): string { |
| 91 | return process.env.ELECTRON_RENDERER_URL || "https://21st.dev/agents" |
no outgoing calls
no test coverage detected