Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vercel.json 配置分享 #10

Open
dsy4567 opened this issue Aug 25, 2023 · 0 comments
Open

vercel.json 配置分享 #10

dsy4567 opened this issue Aug 25, 2023 · 0 comments

Comments

@dsy4567
Copy link

dsy4567 commented Aug 25, 2023

在任意 私仓 新建 vercel.json 文件,内容如下

{ 
     "rewrites": [ 
         { 
             "source": "/password/:host:slash(/)?", 
             "destination": "https://:host" 
         }, 
         { 
             "source": "/password/:host/:path*:slash(/)?:query(\\?.*)?", 
             "destination": "https://:host/:path:slash:query" 
         }
     ] 
 }

部署到 Vercel 并绑定自己的域名,然后配置好 DS 即可。

注意:如果路径里有两个连续的斜杠,则会发生各种奇怪的问题,可以 施法 后参考这篇文章魔改 DS 代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant