diff options
| author | Joe Mou <dev@mou.fo> | 2026-08-11 11:39:01 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-08-11 11:57:29 -0400 |
| commit | 9731ebd1bece1187f943a29da474f4aed6e7ee3b (patch) | |
| tree | d4dd79ffc9e71bcf66992de6395938e9c3ab7434 /cgithub/package.json | |
| parent | ab52f48e50d0dd242ad5b0cfbee9c458946cd427 (diff) | |
Redirect to GitHub with a meta refresh
A browser extension redirects github.com to cgithub with declarative net
requests. Its rules match our HTTP redirects back to github.com too, so
those bounce straight back here and loop forever. A meta refresh makes
cgithub the initiator origin instead, which the extension's rules can
exclude, and its delay leaves a page the user can stop on.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'cgithub/package.json')
| -rw-r--r-- | cgithub/package.json | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cgithub/package.json b/cgithub/package.json index 7673612..ce25701 100644 --- a/cgithub/package.json +++ b/cgithub/package.json @@ -7,7 +7,7 @@ "scripts": { "dev": "node scripts/build.ts && wrangler dev", "deploy": "node scripts/build.ts && wrangler deploy", - "test": "node --test --test-concurrency=4 src/scraper.test.ts" + "test": "node --test --test-concurrency=4 src/app.test.ts src/scraper.test.ts" }, "dependencies": { "css-select": "^6.0.0", @@ -18,7 +18,9 @@ "htmlparser2": "^10.1.0" }, "pnpm": { - "onlyBuiltDependencies": ["workerd"] + "onlyBuiltDependencies": [ + "workerd" + ] }, "devDependencies": { "@types/node": "^22.10.2", |
