with-new-config-object-reference.ts 526 B

12345678910111213141516171819202122
  1. import { VendurePlugin } from '@vendure/core';
  2. /**
  3. * https://github.com/vendurehq/vendure/issues/2906
  4. */
  5. @VendurePlugin({
  6. configuration: config => {
  7. return {
  8. ...config,
  9. customFields: {
  10. ...config.customFields,
  11. Customer: [
  12. {
  13. name: 'testField',
  14. type: 'string',
  15. },
  16. ],
  17. },
  18. };
  19. },
  20. })
  21. export class WithNewConfigObjectReferencePlugin {}