text: const { resolve } = require('path');
  const remarkGfm = require('remark-gfm');
  
  module.exports = {
    reactStrictMode: true,
    trailingSlash: true,
    eslint: {
      ignoreDuringBuilds: true,
    },
    pageExtensions: ['ts', 'tsx', 'mdx'],
    webpack: (config, { isServer }) => {
      config.resolve.alias['@datacamp/waffles'] = resolve(__dirname, '../dist');
  
      if (!isServer) {
        config.resolve.fallback.fs = false;
      }
  
      config.module.rules.push({
        test: /\.mdx$/,
        use: [
          {
            loader: 'xdm/webpack.cjs',
            options: {
              remarkPlugins: [remarkGfm],
            },
          },
        ],
      });
  
      return config;
    },
  };
  