chore: release v0.4.27

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-05-09 22:48:07 +07:00
parent b184444f34
commit b39eb61c33
24 changed files with 517 additions and 229 deletions

View File

@@ -16,7 +16,7 @@ import { getSettings, updateSettings } from "@/lib/localDb";
initDbHooks(getSettings, updateSettings);
const DEFAULT_MITM_ROUTER_BASE = "http://127.0.0.1:20128";
const DEFAULT_MITM_ROUTER_BASE = "http://localhost:20128";
function normalizeMitmRouterBaseUrlInput(input) {
if (input == null || String(input).trim() === "") {

View File

@@ -0,0 +1,15 @@
import { NextResponse } from "next/server";
import { killAppProcesses } from "@/lib/appUpdater";
// Shutdown app to release file locks for manual update
export async function POST() {
try {
await killAppProcesses();
} catch { /* best effort */ }
const response = NextResponse.json({ success: true, message: "Shutting down for manual update..." });
setTimeout(() => process.exit(0), 500);
return response;
}