dev-config.ts 770 B

123456789101112131415161718192021222324252627282930
  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. Product: [
  23. { name: 'infoUrl', type: 'string' },
  24. { name: 'downloadable', type: 'boolean' },
  25. { name: 'nickname', type: 'localeString' },
  26. ],
  27. },
  28. };