dev-config.ts 924 B

1234567891011121314151617181920212223242526272829303132
  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. port: API_PORT,
  8. apiPath: API_PATH,
  9. cors: true,
  10. jwtSecret: 'some-secret',
  11. dbConnectionOptions: {
  12. type: 'mysql',
  13. synchronize: true,
  14. logging: true,
  15. host: '192.168.99.100',
  16. port: 3306,
  17. username: 'root',
  18. password: '',
  19. database: 'vendure-dev',
  20. },
  21. customFields: {
  22. Facet: [{ name: 'searchable', type: 'boolean' }],
  23. FacetValue: [{ name: 'link', type: 'string' }, { name: 'available', type: 'boolean' }],
  24. Product: [
  25. { name: 'infoUrl', type: 'string' },
  26. { name: 'downloadable', type: 'boolean' },
  27. { name: 'nickname', type: 'localeString' },
  28. ],
  29. },
  30. };