X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fenvironments%2Fenvironment.ts;h=5d7011265bfd1a7cb686b92abdd73f74042e7678;hb=175f0fccf15c158951c7442bee6419a772a96ea2;hp=5bb6f4b3446fecce885eb6187219f5e7e7aa9ea2;hpb=74af5a8361f4ccb460001706ce249d50c747f361;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/environments/environment.ts b/client/src/environments/environment.ts index 5bb6f4b34..5d7011265 100644 --- a/client/src/environments/environment.ts +++ b/client/src/environments/environment.ts @@ -2,8 +2,15 @@ // `ng build --env=prod` then `environment.prod.ts` will be used instead. // The list of which env maps to which file can be found in `.angular-cli.json`. +// Reflect.metadata polyfill is only needed in the JIT/dev mode. +// +// In order to load these polyfills early enough (before app code), polyfill.ts imports this file to +// to change the order in the final bundle. +import 'core-js/features/reflect' + export const environment = { - production: false, + production: true, hmr: false, - apiUrl: 'http://localhost:9000' + apiUrl: '', + originServerUrl: '' }