fix: pin mime@^1.6.0 via pnpm override

@astrojs/node 8.3.4 pulls in send@0.19.1, which calls mime.lookup().
mime moved that method to mime.getType() in v3+. With pnpm hoisting,
mime@4 sometimes shadows the transitive mime@1 send expects, and the
server crashes on the first static-asset request with
'TypeError: mime.lookup is not a function'.
This commit is contained in:
Ryan Malloy 2026-06-06 13:11:58 -06:00
parent 7c21720519
commit 0b8812d864
2 changed files with 11 additions and 11 deletions

View file

@ -1,7 +1,7 @@
{
"name": "heady",
"version": "1.0.0",
"description": "🤠 Heady - Strategic VPN management that's actually awesome to use!",
"description": "\ud83e\udd20 Heady - Strategic VPN management that's actually awesome to use!",
"type": "module",
"private": true,
"scripts": {
@ -87,6 +87,9 @@
"better-sqlite3",
"esbuild",
"lefthook"
]
],
"overrides": {
"mime": "^1.6.0"
}
}
}