Commit a59ce4d
fix(dapp-cli): bypass Chromium DNS for *.localhost via Playwright route interception
--host-resolver-rules is not reliably propagated to Chrome's sandboxed
network service subprocess (chrome-headless-shell), so *.localhost DNS
fails non-deterministically on Ubuntu CI runners.
Instead, intercept all *.localhost requests in Node.js with context.route()
and proxy them to localhost, preserving the Host header so PocketIC's HTTP
gateway routes to the correct canister. This bypasses Chrome DNS entirely.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b912365 commit a59ce4d
1 file changed
Lines changed: 26 additions & 8 deletions
Lines changed: 26 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 54 | + | |
62 | 55 | | |
63 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
64 | 82 | | |
65 | 83 | | |
66 | 84 | | |
| |||
0 commit comments