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"), "..")