From b887458093d5087d992bb7d507befb3e339199bf Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Wed, 15 Jun 2022 12:38:10 +0100 Subject: [PATCH] Exclude assets from builder:served --- packages/server/src/api/controllers/static/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/static/index.js b/packages/server/src/api/controllers/static/index.js index d21e38f879..b3be7e6e44 100644 --- a/packages/server/src/api/controllers/static/index.js +++ b/packages/server/src/api/controllers/static/index.js @@ -42,7 +42,9 @@ async function prepareUpload({ s3Key, bucket, metadata, file }) { exports.serveBuilder = async function (ctx) { let builderPath = resolve(TOP_LEVEL_PATH, "builder") await send(ctx, ctx.file, { root: builderPath }) - await events.serve.servedBuilder() + if (!ctx.file.includes("assets/")) { + await events.serve.servedBuilder() + } } exports.uploadFile = async function (ctx) {