shared-constants.ts 1.2 KB

123456789101112131415161718192021222324
  1. /*
  2. * This file contains constants which are shared between more than one sub-module
  3. * e.g. values required by both the server and admin-ui.
  4. */
  5. export const API_PORT = 3000;
  6. export const ADMIN_API_PATH = 'admin-api';
  7. export const SHOP_API_PATH = 'shop-api';
  8. export const DEFAULT_CHANNEL_CODE = '__default_channel__';
  9. export const SUPER_ADMIN_ROLE_CODE = '__super_admin_role__';
  10. export const SUPER_ADMIN_ROLE_DESCRIPTION = 'SuperAdmin';
  11. export const SUPER_ADMIN_USER_IDENTIFIER = 'superadmin';
  12. export const SUPER_ADMIN_USER_PASSWORD = 'superadmin';
  13. export const CUSTOMER_ROLE_CODE = '__customer_role__';
  14. export const CUSTOMER_ROLE_DESCRIPTION = 'Customer';
  15. export const ROOT_COLLECTION_NAME = '__root_collection__';
  16. export const DEFAULT_AUTH_TOKEN_HEADER_KEY = 'vendure-auth-token';
  17. export const DEFAULT_COOKIE_NAME = 'session';
  18. export const DEFAULT_CHANNEL_TOKEN_KEY = 'vendure-token';
  19. // An environment variable which is set when the @vendure/create
  20. // script is run. Can be used to modify normal behaviour
  21. // to fit with the initial create task.
  22. export type CREATING_VENDURE_APP = 'CREATING_VENDURE_APP';
  23. export const CREATING_VENDURE_APP: CREATING_VENDURE_APP = 'CREATING_VENDURE_APP';