index-worker.ts 383 B

123456789101112
  1. import { bootstrapWorker } from '@vendure/core';
  2. import { devConfig } from './dev-config';
  3. // https://github.com/vendure-ecommerce/vendure/issues/152
  4. // fix race condition when modifying DB
  5. devConfig.dbConnectionOptions = { ...devConfig.dbConnectionOptions, synchronize: false };
  6. bootstrapWorker(devConfig).catch(err => {
  7. // tslint:disable-next-line
  8. console.log(err);
  9. });