|
|
@@ -14,7 +14,7 @@ import { ElasticsearchPlugin } from '@vendure/elasticsearch-plugin';
|
|
|
import { defaultEmailHandlers, EmailPlugin } from '@vendure/email-plugin';
|
|
|
import { BullMQJobQueuePlugin } from '@vendure/job-queue-plugin/package/bullmq';
|
|
|
import path from 'path';
|
|
|
-import { ConnectionOptions } from 'typeorm';
|
|
|
+import { DataSourceOptions } from 'typeorm';
|
|
|
|
|
|
import { MultivendorPlugin } from './test-plugins/multivendor-plugin/multivendor.plugin';
|
|
|
|
|
|
@@ -50,7 +50,7 @@ export const devConfig: VendureConfig = {
|
|
|
},
|
|
|
dbConnectionOptions: {
|
|
|
synchronize: false,
|
|
|
- logging: false,
|
|
|
+ logging: true,
|
|
|
migrations: [path.join(__dirname, 'migrations/*.ts')],
|
|
|
...getDbConfig(),
|
|
|
},
|
|
|
@@ -58,7 +58,7 @@ export const devConfig: VendureConfig = {
|
|
|
paymentMethodHandlers: [dummyPaymentHandler],
|
|
|
},
|
|
|
customFields: {},
|
|
|
- logger: new DefaultLogger({ level: LogLevel.Verbose }),
|
|
|
+ logger: new DefaultLogger({ level: LogLevel.Debug }),
|
|
|
importExportOptions: {
|
|
|
importAssetsDir: path.join(__dirname, 'import-assets'),
|
|
|
},
|
|
|
@@ -69,8 +69,8 @@ export const devConfig: VendureConfig = {
|
|
|
assetUploadDir: path.join(__dirname, 'assets'),
|
|
|
}),
|
|
|
DefaultSearchPlugin.init({ bufferUpdates: false, indexStockStatus: false }),
|
|
|
- // BullMQJobQueuePlugin.init({}),
|
|
|
- DefaultJobQueuePlugin.init({}),
|
|
|
+ BullMQJobQueuePlugin.init({}),
|
|
|
+ // DefaultJobQueuePlugin.init({}),
|
|
|
// JobQueueTestPlugin.init({ queueCount: 10 }),
|
|
|
// ElasticsearchPlugin.init({
|
|
|
// host: 'http://localhost',
|
|
|
@@ -96,7 +96,7 @@ export const devConfig: VendureConfig = {
|
|
|
],
|
|
|
};
|
|
|
|
|
|
-function getDbConfig(): ConnectionOptions {
|
|
|
+function getDbConfig(): DataSourceOptions {
|
|
|
const dbType = process.env.DB || 'mysql';
|
|
|
switch (dbType) {
|
|
|
case 'postgres':
|