1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

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

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