Skip to content

feat: automate proxy setup for local testing#7391

Merged
Eetwalt merged 6 commits into
mainfrom
proxy-auto-script
Jul 10, 2026
Merged

feat: automate proxy setup for local testing#7391
Eetwalt merged 6 commits into
mainfrom
proxy-auto-script

Conversation

@ElectricalBoy

Copy link
Copy Markdown
Collaborator

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

@ElectricalBoy ElectricalBoy requested review from a team as code owners April 14, 2026 06:43
@Rathoz Rathoz requested a review from Eetwalt May 13, 2026 14:32

@Eetwalt Eetwalt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread scripts/proxy_lp.py Outdated
@ElectricalBoy ElectricalBoy requested a review from Eetwalt July 10, 2026 11:01
@Eetwalt Eetwalt merged commit c125991 into main Jul 10, 2026
9 checks passed
@Eetwalt Eetwalt deleted the proxy-auto-script branch July 10, 2026 11:33
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