dev-sidecar-doc icon indicating copy to clipboard operation
dev-sidecar-doc copied to clipboard

vercel.json 配置分享

Open dsy4567 opened this issue 1 year ago • 0 comments

在任意 私仓 新建 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 代码

dsy4567 avatar Aug 25 '23 02:08 dsy4567