slidev-vscode icon indicating copy to clipboard operation
slidev-vscode copied to clipboard

May i Change localhost to a remote server?

Open mingzailao opened this issue 3 years ago • 2 comments

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

mingzailao avatar Apr 06 '22 06:04 mingzailao

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

mingzailao avatar Apr 06 '22 07:04 mingzailao

PR welcome to add a host option, thanks!

antfu avatar Apr 06 '22 09:04 antfu