diff --git a/packages/gatsby-plugin-netlify/src/gatsby-node.js b/packages/gatsby-plugin-netlify/src/gatsby-node.js index 1f8d1762e354b..721cb8e2dbe45 100644 --- a/packages/gatsby-plugin-netlify/src/gatsby-node.js +++ b/packages/gatsby-plugin-netlify/src/gatsby-node.js @@ -53,11 +53,11 @@ exports.onPostBuild = async ( ]) } -const MATH_ALL_KEYS = /^/ +const MATCH_ALL_KEYS = /^/ const pluginOptionsSchema = function ({ Joi }) { // headers is a specific type used by Netlify: https://www.gatsbyjs.com/plugins/gatsby-plugin-netlify/#headers const headersSchema = Joi.object() - .pattern(MATH_ALL_KEYS, Joi.array().items(Joi.string())) + .pattern(MATCH_ALL_KEYS, Joi.array().items(Joi.string())) .description(`Add more Netlify headers to specific pages`) return Joi.object({