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

feat(devtools): support custom server origin #246

Merged
merged 1 commit into from Oct 9, 2021
Merged

feat(devtools): support custom server origin #246

merged 1 commit into from Oct 9, 2021

Conversation

innocenzi
Copy link
Contributor

This PR brings support for using devtools with a custom back-end.

The summary is in this PR: vitejs/vite#5104, but basically the only change is to prefix the POST_PATH injected to the client script with the configured server origin, if there is one.

Note: I monkey-patched that locally and made the change directly via GitHub since it's simple enough, but please make sure I didn't break it for normal use cases before merging. Thanks!

@innocenzi innocenzi changed the title feat(devtools): support custom backends feat(devtools): support custom server origin Oct 7, 2021
@antfu antfu merged commit 43a1ed4 into windicss:main Oct 9, 2021
@innocenzi innocenzi deleted the patch-1 branch October 9, 2021 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants