From 9983d67163e576d8e202b633017d394722efb84f Mon Sep 17 00:00:00 2001 From: Michael Drury Date: Tue, 24 Oct 2023 22:13:56 +0100 Subject: [PATCH] Adding mimetype for client library response (correcting from octet-stream). --- packages/server/src/api/controllers/static/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/src/api/controllers/static/index.ts b/packages/server/src/api/controllers/static/index.ts index d2e887dcf8..984cb16c06 100644 --- a/packages/server/src/api/controllers/static/index.ts +++ b/packages/server/src/api/controllers/static/index.ts @@ -206,6 +206,7 @@ export const serveClientLibrary = async function (ctx: Ctx) { ObjectStoreBuckets.APPS, objectStore.clientLibraryPath(appId!) ) + ctx.set("Content-Type", "application/javascript") } else if (env.isDev()) { // incase running from TS directly const tsPath = join(require.resolve("@budibase/client"), "..")