Allow custom components in cloud

This commit is contained in:
Andrew Kingston 2022-09-14 12:01:49 +01:00
parent 917ce9e177
commit 7bee35f816
1 changed files with 17 additions and 20 deletions

View File

@ -33,8 +33,6 @@ exports.fetchAppComponentDefinitions = async function (ctx) {
} }
} }
// for now custom components only supported in self-host
if (env.SELF_HOSTED) {
// Add custom components // Add custom components
const globalDB = getGlobalDB() const globalDB = getGlobalDB()
const response = await globalDB.allDocs( const response = await globalDB.allDocs(
@ -52,7 +50,6 @@ exports.fetchAppComponentDefinitions = async function (ctx) {
...plugin.schema.schema, ...plugin.schema.schema,
} }
}) })
}
ctx.body = definitions ctx.body = definitions
} catch (err) { } catch (err) {