mirror of
https://github.com/foomo/next-proxy-middleware.git
synced 2025-10-16 12:35:36 +00:00
fix: resolve typing issue
This commit is contained in:
parent
651422104d
commit
67431d19d6
@ -5,7 +5,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"publish": "bun publish --access public"
|
"publish": "bun run build && bun publish --access public"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"tag": "next"
|
"tag": "next"
|
||||||
|
|||||||
@ -94,7 +94,8 @@ export const createProxyMiddleware = (config: DevProxyConfig) => {
|
|||||||
|
|
||||||
if (config.debug) {
|
if (config.debug) {
|
||||||
console.log("[PROXY]", "received response from remote", {
|
console.log("[PROXY]", "received response from remote", {
|
||||||
headers: Object.fromEntries(backendResponse.headers as unknown),
|
// biome-ignore lint/suspicious/noExplicitAny: inconsistency in TS
|
||||||
|
headers: Object.fromEntries(backendResponse.headers as any),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user