Skip to content

Commit

Permalink
docs: add comment to server-usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed May 22, 2021
1 parent 5c7f396 commit b04d359
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/server-usage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import got from 'got'

const endpoint = prismic.getEndpoint('my-repo')
const client = prismic.createClient(endpoint, {
// Here, we provide a way for the client to make network requests.
// Got is one way to make network requests on the server. It has built-in
// caching and automatically retries requests on failures.
fetch: async (url, options) => {
return await got(url, options).json()
},
Expand Down

0 comments on commit b04d359

Please sign in to comment.