Skip to content

Conversation

akdlsz21
Copy link
Contributor

@akdlsz21 akdlsz21 commented Sep 13, 2025

I was using tanstack devtools on my local machine. During my project, some of my logic depended on hostname, so I usually develop using custom domains.

The tools started to break and I investigated and noticed that localhost was hardcoded.

DevTools hardcoded {scheme}://localhost:{port} for open-in-editor and related links, which broke in my setup where I routinely develop on custom domains/non-loopback hosts (and also impacts IPv6).
This PR replaces the hardcoded origin with location.origin so links respect the actual scheme/host/port in use; it fixed the failures I observed while keeping localhost behavior intact.

If this direction makes sense, I’m happy to add tests to prevent regressions.

@akdlsz21
Copy link
Contributor Author

removed unused variable making build test fail

Copy link

pkg-pr-new bot commented Sep 16, 2025

More templates

@tanstack/devtools

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools@127

@tanstack/devtools-ui

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-ui@127

@tanstack/devtools-vite

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-vite@127

@tanstack/devtools-event-bus

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-event-bus@127

@tanstack/devtools-event-client

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-event-client@127

@tanstack/react-devtools

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/react-devtools@127

@tanstack/solid-devtools

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/solid-devtools@127

commit: cc5bcac

@AlemTuzlak AlemTuzlak merged commit bb671a7 into TanStack:main Sep 17, 2025
4 checks passed
@AlemTuzlak
Copy link
Collaborator

@akdlsz21 thanks for this!

@akdlsz21
Copy link
Contributor Author

@akdlsz21 thanks for this!

No problem

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.

2 participants