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

Show requests to Playground in the network tab of the browser's developer tools #181

Open
psrpinto opened this issue Dec 19, 2024 · 3 comments

Comments

@psrpinto
Copy link
Member

One issue we have that negatively impacts developer experience is that requests to Playground don't show up in the Network tab of the browser's developer tools. This makes debugging tasks and day-to-day development considerably harder than a traditional frontend-backend scenario.

The reason why requests to playground don't show is because we're not technically making a request, we're just calling a function in PlaygroundClient.

@psrpinto
Copy link
Member Author

psrpinto commented Dec 19, 2024

Once way to do this could be to have a service worker act as a proxy between the extension and Playground. To issue a request to Playground, we would instead issue it to a proxy URL (e.g. /playground-proxy) using fetch(). The /playground-proxy would call the request() function of PlaygroundClient and return the response.

Something that might prevent this from being feasible is that we would not have the instance of PlaygroundClient in the service worker, I guess.

@psrpinto
Copy link
Member Author

/cc @adamziel Any thoughts about this?

@psrpinto
Copy link
Member Author

Related: #179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant