@blocklet/uploader-server 0.1.68 → 0.1.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -107,7 +107,7 @@ export const initStaticResourceMiddleware = ({
|
|
|
107
107
|
...options
|
|
108
108
|
})(req, res, next);
|
|
109
109
|
} else {
|
|
110
|
-
|
|
110
|
+
next();
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
};
|
|
@@ -128,10 +128,7 @@ export const initProxyToMediaKitUploadsMiddleware = ({ options, express } = {})
|
|
|
128
128
|
changeOrigin: true,
|
|
129
129
|
...options
|
|
130
130
|
},
|
|
131
|
-
|
|
132
|
-
console.error("Proxy error:", err);
|
|
133
|
-
next();
|
|
134
|
-
}
|
|
131
|
+
next
|
|
135
132
|
);
|
|
136
133
|
};
|
|
137
134
|
};
|
|
@@ -127,7 +127,7 @@ const initStaticResourceMiddleware = ({
|
|
|
127
127
|
...options
|
|
128
128
|
})(req, res, next);
|
|
129
129
|
} else {
|
|
130
|
-
|
|
130
|
+
next();
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
};
|
|
@@ -149,10 +149,7 @@ const initProxyToMediaKitUploadsMiddleware = ({
|
|
|
149
149
|
target: mediaKitInfo.webEndpoint,
|
|
150
150
|
changeOrigin: true,
|
|
151
151
|
...options
|
|
152
|
-
},
|
|
153
|
-
console.error("Proxy error:", err);
|
|
154
|
-
next();
|
|
155
|
-
});
|
|
152
|
+
}, next);
|
|
156
153
|
};
|
|
157
154
|
};
|
|
158
155
|
exports.initProxyToMediaKitUploadsMiddleware = initProxyToMediaKitUploadsMiddleware;
|