Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May i Change localhost to a remote server? #1582

Open
mingzailao opened this issue Apr 6, 2022 · 2 comments
Open

May i Change localhost to a remote server? #1582

mingzailao opened this issue Apr 6, 2022 · 2 comments
Labels

Comments

@mingzailao
Copy link

mingzailao commented Apr 6, 2022

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
Copy link
Author

mingzailao commented Apr 6, 2022

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

@antfu
Copy link
Member

antfu commented Apr 6, 2022

PR welcome to add a host option, thanks!

@KermanX KermanX added the enhancement New feature or request label May 10, 2024
@KermanX KermanX transferred this issue from slidevjs/slidev-vscode May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants