import { amoStageCDN } from './lib/shared';

const staticHost = 'https://addons-amo-cdn.allizom.org';

module.exports = {
  staticHost,

  CSP: {
    directives: {
      fontSrc: [
        staticHost,
      ],
      scriptSrc: [
        staticHost,
        'https://www.google-analytics.com/analytics.js',
      ],
      styleSrc: [staticHost],
      imgSrc: [
        "'self'",
        'data:',
        amoStageCDN,
        staticHost,
        'https://www.google-analytics.com',
      ],
    },
  },
};

@@ -494,12 +494,44 @@
  %7D,%0A  %7D,
+%0A%0A  enableAMInstallButton: true,
 %0A%7D;%0A

Enable AMInstallButton on AMO -stage (#6206)