Open mingzailao opened 2 years ago
I installed Slidev on remote server, but i modify the markdown file on my macbook.
preview function can not work.
After i change
const serverAddr = `http://localhost:${config.port}/`
to
const serverAddr = `http://${remotehost}:${config.port}/`
and recomplie it
work well
PR welcome to add a host
option, thanks!
Hope that i can change localhost to a given remote server at the settings.
https://github.com/slidevjs/slidev-vscode/blob/main/src/view/PreviewProvider.ts#L65