hamster1963 / nezha-dash

A simple dashboard for nezha.
https://nezhadash-docs.vercel.app
819 stars 628 forks source link

可不可以加个basepath配置,方便把它和nezha-dashboard的域名放一起 #108

Closed xuecanlong closed 52 minutes ago

xuecanlong commented 2 hours ago

想要个/dash的basepath 方便把它跟nezha dashboard的域名放一起使用 xxx.com/dash是你这个dash 其他还是nezha-dashboard

nginx配置 xxx.com/dash --> nezha-dash xxx.com/--> nezha-dashboard

hamster1963 commented 2 hours ago

需要看看能否作为环境变量动态设置

Eyeseas commented 53 minutes ago

39ed9f4a867ccc07f03199af9a2aad379d8f50ea

这么快加上了,厉害!

hamster1963 commented 52 minutes ago

已新增,由于 basePath 会在构建时嵌入,因此新增的 basePath 环境变量仅针对 Vercel 与 Cloudflare 环境。

https://nezha-docs.vercel.app/environment#base-path