dev-config.ts 945 B

123456789101112131415161718192021222324252627282930313233
  1. import { API_PATH, API_PORT } from 'shared/shared-constants';
  2. import { VendureConfig } from './src/config/vendure-config';
  3. /**
  4. * Config settings used during development
  5. */
  6. export const devConfig: VendureConfig = {
  7. disableAuth: false,
  8. port: API_PORT,
  9. apiPath: API_PATH,
  10. cors: true,
  11. jwtSecret: 'some-secret',
  12. dbConnectionOptions: {
  13. type: 'mysql',
  14. synchronize: true,
  15. logging: true,
  16. host: '192.168.99.100',
  17. port: 3306,
  18. username: 'root',
  19. password: '',
  20. database: 'vendure-dev',
  21. },
  22. customFields: {
  23. Facet: [{ name: 'searchable', type: 'boolean' }],
  24. FacetValue: [{ name: 'link', type: 'string' }, { name: 'available', type: 'boolean' }],
  25. Product: [
  26. { name: 'infoUrl', type: 'string' },
  27. { name: 'downloadable', type: 'boolean' },
  28. { name: 'nickname', type: 'localeString' },
  29. ],
  30. },
  31. };