You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
我使用读取目录的方式生成sidebar,但是新增或者删除md文件的时候无法及时更新,需要手动重新启动服务或者修改 config.ts 触发服务重启,这样很不方便,现在我使用下面的方式触发服务重启,大佬们有没有更好的方式推荐?
在 config.ts 中引入一个restart-trigger.ts文件,然后监听目录文件变化,变化的时候变更 restart-trigger.ts 的内容,以此达到触发服务重启的目的
Beta Was this translation helpful? Give feedback.
All reactions