Unverified Commit d420233e authored by Kevin's avatar Kevin Committed by GitHub

Hotfix for missing application/json header in Prepr example (#55517)

I added the application/json header to the API lib of the Prepr example.
Because without it when statically generating an error is produced by
GraphQL.
Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent ff366849
...@@ -2,6 +2,7 @@ async function fetchAPI(query, { variables, preview } = {}) { ...@@ -2,6 +2,7 @@ async function fetchAPI(query, { variables, preview } = {}) {
const response = await fetch(process.env.PREPRIO_API, { const response = await fetch(process.env.PREPRIO_API, {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json',
Authorization: Authorization:
'Bearer ' + 'Bearer ' +
(preview (preview
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment