| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- import path from 'path';
- import { ADMIN_API_PATH, API_PORT, SHOP_API_PATH } from '../shared/shared-constants';
- import { TestingEntityIdStrategy } from './e2e/config/testing-entity-id-strategy';
- import { examplePaymentHandler } from './src/config/payment-method/example-payment-method-config';
- import { OrderProcessOptions, VendureConfig } from './src/config/vendure-config';
- import { defaultEmailTypes } from './src/email/default-email-types';
- import { HandlebarsMjmlGenerator } from './src/email/handlebars-mjml-generator';
- import { DefaultAssetServerPlugin } from './src/plugin';
- import { AdminUiPlugin } from './src/plugin/admin-ui-plugin/admin-ui-plugin';
- import { DefaultSearchPlugin } from './src/plugin/default-search-plugin/default-search-plugin';
- /**
- * Config settings used during development
- */
- export const devConfig: VendureConfig = {
- authOptions: {
- disableAuth: false,
- sessionSecret: 'some-secret',
- requireVerification: false,
- },
- port: API_PORT,
- adminApiPath: ADMIN_API_PATH,
- shopApiPath: SHOP_API_PATH,
- dbConnectionOptions: {
- synchronize: false,
- logging: false,
- type: 'mysql',
- host: '192.168.99.100',
- port: 3306,
- username: 'root',
- password: '',
- database: 'vendure-dev',
- // type: 'sqlite',
- // database: path.join(__dirname, 'vendure.sqlite'),
- // type: 'postgres',
- // host: '127.0.0.1',
- // port: 5432,
- // username: 'postgres',
- // password: 'Be70',
- // database: 'vendure',
- },
- paymentOptions: {
- paymentMethodHandlers: [examplePaymentHandler],
- },
- customFields: {},
- emailOptions: {
- emailTemplatePath: path.join(__dirname, 'src/email/templates'),
- emailTypes: defaultEmailTypes,
- generator: new HandlebarsMjmlGenerator(),
- transport: {
- type: 'file',
- raw: false,
- outputPath: path.join(__dirname, 'test-emails'),
- },
- templateVars: {
- shopUrl: 'http://localhost:4201/',
- },
- },
- importExportOptions: {
- importAssetsDir: path.join(__dirname, 'import-assets'),
- },
- plugins: [
- new DefaultAssetServerPlugin({
- route: 'assets',
- assetUploadDir: path.join(__dirname, 'assets'),
- port: 5002,
- }),
- new DefaultSearchPlugin(),
- new AdminUiPlugin({
- port: 5001,
- }),
- ],
- };
|