<commit_before>const withImages = require('next-images');

const withCustomConfig = (nextConfig = {}) => {
  /**
   * @type import('next/dist/next-server/server/config-shared').NextConfig
   */
  const config = {
    ...nextConfig,
    future: {
      webpack5: true,
      strictPostcssConfiguration: true,
    },
    distDir: 'build',
    poweredByHeader: false,
    compress: false,
    webpack(config, options) {
      config.module.rules.unshift({
        test: /\.md$/,
        use: 'raw-loader',
        exclude: /node_modules/,
      });

      if (typeof nextConfig.webpack === 'function') {
        return nextConfig.webpack(config, options);
      }

      return config;
    },
  };

  return config;
};

module.exports = withImages(withCustomConfig());<commit_msg>chore(docs): redirect to v1 website<commit_after>const withImages = require('next-images');

const withCustomConfig = (nextConfig = {}) => {
  /**
   * @type import('next/dist/next-server/server/config-shared').NextConfig
   */
  const config = {
    ...nextConfig,
    future: {
      webpack5: true,
      strictPostcssConfiguration: true,
    },
    distDir: 'build',
    poweredByHeader: false,
    compress: false,
    webpack(config, options) {
      config.module.rules.unshift({
        test: /\.md$/,
        use: 'raw-loader',
        exclude: /node_modules/,
      });

      if (typeof nextConfig.webpack === 'function') {
        return nextConfig.webpack(config, options);
      }

      return config;
    },
    async redirects() {
      return [
        {
          source: '/v1/',
          destination: 'https://mlaursen.github.io/react-md-v1-docs/#/',
          permanent: false,
        },
        {
          source: '/v1/:paths*',
          destination: 'https://mlaursen.github.io/react-md-v1-docs/#/:paths*',
          permanent: false,
        },
      ];
    },
  };

  return config;
};

module.exports = withImages(withCustomConfig());
{'fraction_non_alphanumeric': 0.1561051004636785, 'fraction_numerical': 0.0036063884595569293, 'mean_word_length': 2.2583892617449663, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7233109', 'n_tokens_mistral': 597, 'n_tokens_neox': 592, 'n_words': 106}