dev-config.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import * as path from 'path';
  2. import { API_PATH, API_PORT } from '../shared/shared-constants';
  3. import { fakePalPaymentHandler } from './src/config/payment-method/fakepal-payment-method-config';
  4. import { gripePaymentHandler } from './src/config/payment-method/gripe-payment-method-config';
  5. import { OrderProcessOptions, VendureConfig } from './src/config/vendure-config';
  6. import { defaultEmailTypes } from './src/email/default-email-types';
  7. import { HandlebarsMjmlGenerator } from './src/email/handlebars-mjml-generator';
  8. /**
  9. * Config settings used during development
  10. */
  11. export const devConfig: VendureConfig = {
  12. defaultChannelToken: 'default-channel',
  13. authOptions: {
  14. disableAuth: false,
  15. sessionSecret: 'some-secret',
  16. },
  17. port: API_PORT,
  18. apiPath: API_PATH,
  19. dbConnectionOptions: {
  20. type: 'mysql',
  21. synchronize: true,
  22. logging: true,
  23. host: '192.168.99.100',
  24. port: 3306,
  25. username: 'root',
  26. password: '',
  27. database: 'vendure-dev',
  28. },
  29. orderProcessOptions: {} as OrderProcessOptions<any>,
  30. paymentOptions: {
  31. paymentMethodHandlers: [fakePalPaymentHandler, gripePaymentHandler],
  32. },
  33. customFields: {},
  34. emailOptions: {
  35. emailTypes: defaultEmailTypes,
  36. generator: new HandlebarsMjmlGenerator(path.join(__dirname, 'src', 'email', 'templates', 'partials')),
  37. transport: {
  38. type: 'file',
  39. raw: false,
  40. outputPath: path.join(__dirname, 'test-emails'),
  41. },
  42. },
  43. importExportOptions: {
  44. importAssetsDir: path.join(__dirname, 'import-assets'),
  45. },
  46. plugins: [],
  47. };