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:
parent
7c21720519
commit
0b8812d864
2 changed files with 11 additions and 11 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue