This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+4
View File
@@ -8,6 +8,10 @@ module.exports = function createServePlaceholder (_options) {
const options = defu(_options, defaults)
return function servePlaceholderMiddleware (req, res, next) {
// If response already sent, skip
if (res.writableEnded) {
return
}
// Get url from req object
const url = req.url.split('?')[0]