Skip to content

Commit

Permalink
fix(gatsby-source-strapi): add paramsSerializer to singleType reporte…
Browse files Browse the repository at this point in the history
…r info (#406)

* Update fetch.js

add paramsSerializer to singleType reporter info

* Create dry-dolls-sin.md
  • Loading branch information
laurenskling authored Mar 22, 2023
1 parent 198e5ae commit 9a51a78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dry-dolls-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gatsby-source-strapi": patch
---

add paramsSerializer to singleType reporter info
4 changes: 3 additions & 1 deletion packages/gatsby-source-strapi/src/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export const fetchEntity = async ({ endpoint, queryParams, uid, pluginOptions },

try {
reporter.info(
`Starting to fetch data from Strapi - ${options.url} with ${JSON.stringify(options)}`
`Starting to fetch data from Strapi - ${options.url} with ${JSON.stringify(
options.paramsSerializer(options.params)
)}`
);

// Handle internationalization
Expand Down

0 comments on commit 9a51a78

Please sign in to comment.