Git Product home page Git Product logo

Comments (5)

johnboxall avatar johnboxall commented on July 25, 2024

Adding onto this, it might be valuable if the devserver had native support for routing proxy requests through a proxy (like MITMProxy). This can be helpful for debugging errors with API requests that happen in the context of the server.

from pwa-kit.

johnboxall avatar johnboxall commented on July 25, 2024

This approach is likely also blocked by #733. Wait – this is only useful for local development, which doesn't have this issue.

from pwa-kit.

git2gus avatar git2gus commented on July 25, 2024

This issue has been linked to a new work item: W-12145701

from pwa-kit.

johnboxall avatar johnboxall commented on July 25, 2024

Besides the use case of routing traffic through a proxy to adhere to corporate network policies, it can also be useful to route traffic through a proxy to help with debugging:

Screenshare.-.2023-02-24.2_15_45.PM.1.mp4

from pwa-kit.

johnboxall avatar johnboxall commented on July 25, 2024

It would also be useful if there was a feature switch you could enable to see what network requests your app is making.

Something similar to NODE_DEBUG=http

Could potentially be implemented as part of our default agent and toggled using upcoming support for environment variables:

https://github.com/SalesforceCommerceCloud/pwa-kit/blob/918f4e50ec7a74a0da088f8901d750a62faf1c11/packages/pwa-kit-runtime/src/utils/ssr-server/outgoing-request-hook.js

from pwa-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.