@servable/parse-server-engine
Version:
Servable Parse Server Engine
28 lines (25 loc) • 605 B
JavaScript
import doLaunch from "../doLaunch/index.js"
export default async ({ schema, configuration, app }) => {
console.log('[PARSE_SERVER_ADAPTER]', '[DEBUG]', 'launchwithnomigration> ',
// schema,
// configuration
)
const { liveClasses } = schema
let config = { ...configuration.config }
config = {
...config,
parse: {
...config.parse,
liveQuery: {
...(config.liveQuery ? config.liveQuery : {}),
classNames: liveClasses,
},
}
}
const server = await doLaunch({
config,
app
})
Servable.schema = schema
return { config, server }
}