1
0
Fork 0
mirror of synced 2024-06-28 11:00:55 +12:00

Exclude assets from builder:served

This commit is contained in:
Rory Powell 2022-06-15 12:38:10 +01:00
parent d5ef5ec954
commit 0db37c2fc3

View file

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