next.js/examples/react-remove-properties/next.config.js
next.config.js17 lines460 B
// @ts-check

/**
 * @type {import('next').NextConfig}
 **/
const nextConfig = {
  compiler: {
    reactRemoveProperties: true,
    // Or, specify a custom list of regular expressions to match properties to remove.
    // The regexes defined here are processed in Rust so the syntax is different from
    // JavaScript `RegExp`s. See https://docs.rs/regex.
    // reactRemoveProperties: { properties: ['^data-custom$'] },
  },
};

module.exports = nextConfig;
Quest for Codev2.0.0
/
SIGN IN