<commit_before>// Config specific to local development
import { amoDevCDN, apiDevHost, sentryHost } from './lib/shared';

const webpackServerHost = '127.0.0.1';
const webpackServerPort = 3001;
const webpackHost = `${webpackServerHost}:${webpackServerPort}`;


module.exports = {
  apiHost: apiDevHost,
  amoCDN: amoDevCDN,

  // Statics will be served by node.
  staticHost: undefined,

  isDeployed: false,
  isDevelopment: true,

  cookieSecure: false,

  enableClientConsole: true,

  serverPort: 3000,
  webpackServerHost,
  webpackServerPort,
  webpackHost,

  CSP: {
    directives: {
      connectSrc: [
        "'self'",
        amoDevCDN,
        sentryHost,
        webpackHost,
      ],
      imgSrc: [
        "'self'",
        webpackHost,
      ],
      scriptSrc: [
        "'self'",
        amoDevCDN,
        webpackHost,
      ],
      styleSrc: [
        "'self'",
        'blob:',
      ],
    },
    reportOnly: true,
  },
};
<commit_msg>Don't report local dev errors to prod Sentry! d'oh (#1999)<commit_after>// Config specific to local development
import { amoDevCDN, apiDevHost, sentryHost } from './lib/shared';

const webpackServerHost = '127.0.0.1';
const webpackServerPort = 3001;
const webpackHost = `${webpackServerHost}:${webpackServerPort}`;


module.exports = {
  apiHost: apiDevHost,
  amoCDN: amoDevCDN,

  // Statics will be served by node.
  staticHost: undefined,

  isDeployed: false,
  isDevelopment: true,

  cookieSecure: false,

  enableClientConsole: true,

  serverPort: 3000,
  webpackServerHost,
  webpackServerPort,
  webpackHost,

  CSP: {
    directives: {
      connectSrc: [
        "'self'",
        amoDevCDN,
        sentryHost,
        webpackHost,
      ],
      imgSrc: [
        "'self'",
        webpackHost,
      ],
      scriptSrc: [
        "'self'",
        amoDevCDN,
        webpackHost,
      ],
      styleSrc: [
        "'self'",
        'blob:',
      ],
    },
    reportOnly: true,
  },

  // By default, client side errors are not reported to Sentry during
  // development. Override this in a local-*.js config to report errors.
  publicSentryDsn: null,
};

{'fraction_non_alphanumeric': 0.11913696060037524, 'fraction_numerical': 0.0150093808630394, 'mean_word_length': 2.4514563106796117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4514206', 'n_tokens_mistral': 738, 'n_tokens_neox': 688, 'n_words': 164}