Browse Source

Exclude assets from builder:served

pull/6334/head
Rory Powell 4 years ago
parent
commit
0db37c2fc3
  1. 4
      packages/server/src/api/controllers/static/index.js

4
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) {

Loading…
Cancel
Save