Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
Fix static query path to updated location
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky authored Aug 7, 2020
1 parent 880a5e2 commit 85aae95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/server/isAllowedGatsbyPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ module.exports.isAllowedGatsbyPath = function isAllowedGatsbyPath(filePath) {

// Allow access to the static query results
// https://github.com/gatsbyjs/gatsby/pull/25723/files#diff-917ba78a52f29b1a1fe42be34d81fc83R64
if (pathWithoutQuery.match(/^\/static\/d\/\d+\.json$/)) {
// https://github.com/gatsbyjs/gatsby/pull/26242
if (pathWithoutQuery.match(/^\/page-data\/sq\/d\/\d+\.json$/)) {
return true;
}

Expand Down

0 comments on commit 85aae95

Please sign in to comment.