Skip to content

Commit

Permalink
feat: additional query size optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
bwlt committed Jan 23, 2020
1 parent 57e2940 commit 8fcec72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/gatsby-source-prismic-graphql/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export function fetchStripQueryWhitespace(url: string, ...args: any) {
.replace(/\s?\:\s?/g, ':')
.replace(/\s?\(\s?/g, '(')
.replace(/\s?\)\s?/g, ')')
.replace(/\.\.\.\s/g, '...')
.replace(/\,\s/g, ',')
);
}
const updatedQs = Array.from(queryString)
Expand Down

0 comments on commit 8fcec72

Please sign in to comment.