|
|
@@ -7,34 +7,13 @@ import {
|
|
|
DefaultLogger,
|
|
|
DefaultSearchPlugin,
|
|
|
examplePaymentHandler,
|
|
|
- LanguageCode,
|
|
|
LogLevel,
|
|
|
- PluginCommonModule,
|
|
|
- ProductService,
|
|
|
VendureConfig,
|
|
|
- VendurePlugin,
|
|
|
} from '@vendure/core';
|
|
|
-import { ElasticsearchPlugin } from '@vendure/elasticsearch-plugin';
|
|
|
import { defaultEmailHandlers, EmailPlugin } from '@vendure/email-plugin';
|
|
|
import path from 'path';
|
|
|
import { ConnectionOptions } from 'typeorm';
|
|
|
|
|
|
-@VendurePlugin({
|
|
|
- imports: [PluginCommonModule],
|
|
|
- providers: [
|
|
|
- {
|
|
|
- provide: ProductService,
|
|
|
- useClass: class MyProdService {
|
|
|
- findOne() {
|
|
|
- console.log('YOLO');
|
|
|
- return {};
|
|
|
- }
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
-})
|
|
|
-class MyPlugin {}
|
|
|
-
|
|
|
/**
|
|
|
* Config settings used during development
|
|
|
*/
|
|
|
@@ -77,7 +56,6 @@ export const devConfig: VendureConfig = {
|
|
|
importAssetsDir: path.join(__dirname, 'import-assets'),
|
|
|
},
|
|
|
plugins: [
|
|
|
- MyPlugin,
|
|
|
AssetServerPlugin.init({
|
|
|
route: 'assets',
|
|
|
assetUploadDir: path.join(__dirname, 'assets'),
|
|
|
@@ -86,7 +64,7 @@ export const devConfig: VendureConfig = {
|
|
|
DefaultSearchPlugin,
|
|
|
DefaultJobQueuePlugin,
|
|
|
// ElasticsearchPlugin.init({
|
|
|
- // host: 'http://192.168.99.100',
|
|
|
+ // host: 'http://localhost',
|
|
|
// port: 9200,
|
|
|
// }),
|
|
|
EmailPlugin.init({
|