Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
if (!index.config) {
console.error(`The file "${configFile}" does not export a "config" object`);
process.exit(1);
return;
}
const config = index.config;
// Force the sync mode on, so that all the tables are created
// on this initial run.
config.dbConnectionOptions.synchronize = true;
const { bootstrap } = require('@vendure/core');
console.log('Bootstrapping Vendure server...');
const app = await bootstrap(config);
return app;
}
import { bootstrap } from '@vendure/core';
import { devConfig } from './dev-config';
/**
* This bootstraps the dev server, used for testing Vendure during development.
*/
bootstrap(devConfig).catch(err => {
// tslint:disable-next-line
console.log(err);
});
() => bootstrap(populateConfig),
initialData,