Merge pull request #12168 from Budibase/fix/client-lib-mimetype

Correcting content-type client library response
This commit is contained in:
Michael Drury 2023-10-24 22:14:57 +01:00 committed by GitHub
commit 7c305bc3f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -206,6 +206,7 @@ export const serveClientLibrary = async function (ctx: Ctx) {
ObjectStoreBuckets.APPS, ObjectStoreBuckets.APPS,
objectStore.clientLibraryPath(appId!) objectStore.clientLibraryPath(appId!)
) )
ctx.set("Content-Type", "application/javascript")
} else if (env.isDev()) { } else if (env.isDev()) {
// incase running from TS directly // incase running from TS directly
const tsPath = join(require.resolve("@budibase/client"), "..") const tsPath = join(require.resolve("@budibase/client"), "..")