Adding mimetype for client library response (correcting from octet-stream).

This commit is contained in:
Michael Drury 2023-10-24 22:13:56 +01:00
parent 80aa6fa62b
commit 9983d67163
1 changed files with 1 additions and 0 deletions

View File

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