feat: 配置Vercel部署,README更新

This commit is contained in:
Jurangren
2026-01-20 06:04:21 +08:00
parent 53c0e27347
commit 8f131b2ab8
8 changed files with 1311 additions and 200 deletions

View File

@@ -54,7 +54,8 @@ export default {
const url = new URL(request.url);
if (url.pathname === '/') {
return Response.redirect('https://searchgal.homes', 302);
const origin = url.origin;
return Response.redirect(`https://searchgal.homes?api=${encodeURIComponent(origin)}`, 302);
}
if (request.method === "OPTIONS") {