Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Restrict frontmatter extraction to pages directory (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshclow authored Jul 23, 2020
1 parent 0ac0021 commit 6b64df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ module.exports = (pluginOptions = {}) => (nextConfig = {}) => {
files: {
pattern:
pluginOptions.fileExtensions.length > 1
? `**/*.{${pluginOptions.fileExtensions.join(',')}}`
: `**/*.${pluginOptions.fileExtensions[0]}`,
? `pages/**/*.{${pluginOptions.fileExtensions.join(',')}}`
: `pages/**/*.${pluginOptions.fileExtensions[0]}`,
options: { cwd: config.context },
addFilesAsDependencies: true,
},
Expand Down

0 comments on commit 6b64df1

Please sign in to comment.