Skip to content

一分钟搭建影视站,支持Docker等部署方式

fix: add redirects for search path handling in netlify.toml and vercel.json

developer3bfdb9687059
diff --git a/netlify.toml b/netlify.toml
index 4085f26..b69c629 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -12,6 +12,12 @@
to = "/.netlify/functions/proxy/:splat" # 将路径参数传递给函数
status = 200 # 重要:这是代理,不是重定向
+# 处理搜索路径格式 /s=*
+[[redirects]]
+ from = "/s=*"
+ to = "/index.html"
+ status = 200
+
# (可选)为其他静态文件设置缓存头等
# [[headers]]
# for = "/*"
diff --git a/vercel.json b/vercel.json
index 2337aa2..3cacf57 100644
--- a/vercel.json
+++ b/vercel.json
@@ -3,6 +3,10 @@
{
"source": "/proxy/:path*",
"destination": "/api/proxy/:path*"
+ },
+ {
+ "source": "/s=:query",
+ "destination": "/index.html"
}
]
}