slidev-vscode
slidev-vscode copied to clipboard
May i Change localhost to a remote server?
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
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!