X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fenvironments%2Fenvironment.ts;h=5d7011265bfd1a7cb686b92abdd73f74042e7678;hb=4fc4541a26227dd880adfdd7599dea17b5b813f0;hp=42b8baee8bb3d076de13fff44bb393cc8b73135a;hpb=77d07d690968a9631fc0c8bafbaebd27a5ebaab6;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/environments/environment.ts b/client/src/environments/environment.ts index 42b8baee8..5d7011265 100644 --- a/client/src/environments/environment.ts +++ b/client/src/environments/environment.ts @@ -1,10 +1,16 @@ -// The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `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: '' }