aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-08-11 11:39:01 -0400
committerJoe Mou <dev@mou.fo>2026-08-11 11:57:29 -0400
commit0a39a7a981f619ac64fdeb26294c7cfd4f110a1a (patch)
treebc5539448262980f9d5ca9d3fdaa25fca03a2368 /package.json
parentd76a46b37b12823b5b3976d129c2d4b672a99693 (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 'package.json')
-rw-r--r--package.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/package.json b/package.json
index 7673612..ce25701 100644
--- a/package.json
+++ b/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",