feat: automate proxy setup for local testing#7391
Merged
Merged
Conversation
Eetwalt
approved these changes
Jul 9, 2026
Collaborator
There was a problem hiding this comment.
An alternative is to decouple building from serving, have the proxy just serve the already-built lua/output/** files, and trigger the build out-of-band via npm run build (or a sass --watch-style watcher / editor keybinding on save). That keeps builds off the request path and off the request path entirely, so a failed build can't wedge a request. The tradeoff is you lose the implicit "refresh = rebuild," so you'd need a manual rebuild or a live-reload nudge to pick up changes.
That's how I personally do it so I know the build succees before I check the browser (so I can trust the output), but this works fine too. Can merge this as is if you prefer keeping it as is
2a07178 to
ffcd295
Compare
Eetwalt
reviewed
Jul 10, 2026
Eetwalt
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds (semi-)automated python script version of #7201.
To use:
mitmproxy -s scripts/proxy_lp.py, and the script automates the rest.How did you test this change?
local test run