X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fenvironments%2Fenvironment.ts;h=5d7011265bfd1a7cb686b92abdd73f74042e7678;hb=c4207f978e23c77f09c4646b940dfd532281300f;hp=364da6745c9ac1d1a1e55ac135c0f11923ad3d97;hpb=93df58cc4865af9046d2b31e03fa37d3ae54e45b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/environments/environment.ts b/client/src/environments/environment.ts index 364da6745..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, - hmr: true, - apiUrl: 'http://localhost:9000' + production: true, + hmr: false, + apiUrl: '', + originServerUrl: '' }