shanyuhai123 / vuepress-plugin-auto-sidebar

vuepress 自动生成侧边栏的插件。
https://shanyuhai123.github.io/vuepress-plugin-auto-sidebar/
MIT License
136 stars 29 forks source link

打包后部署到nginx,侧边栏就没了,开发环境正常 #68

Closed aoxiangsky closed 2 years ago

aoxiangsky commented 2 years ago

打包后部署到nginx,侧边栏就没了,开发环境正常

aoxiangsky commented 2 years ago

version: 2.3.2

aoxiangsky commented 2 years ago

windows 上打包是正常的,centos7上打包不对

aoxiangsky commented 2 years ago

看是不是路径分隔符的问题,window上和linux上不一样的,一个是 \ ,一个是 / ,用 path.sep 来替代

shanyuhai123 commented 2 years ago

好的,谢谢反馈。

不过我的开发及 github action 均为 linux 环境,我稍后会排查一下问题。

shanyuhai123 commented 2 years ago

还有一个可能是你的 CentOS 中 Nginx 找不到中文路径引起的,你可以看下是否是该问题。