Merge pull request #12168 from Budibase/fix/client-lib-mimetype
Correcting content-type client library response
This commit is contained in:
commit
7c305bc3f5
|
@ -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"), "..")
|
||||||
|
|
Loading…
Reference in New Issue