Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
It makes more sense to set coinToss to a duration of "0d"
  • Loading branch information
ashur committed Jan 3, 2024
1 parent 2111e88 commit 09838a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,19 @@ If you're working with global data variables that have different requirements, y
```javascript
eleventyConfig.addPlugin(addRemoteData, {
data: {
coinToss: "https://coin-toss.netlify.app/api/v1.json",
robots: {
url: "https://api.ashur.cab/robots/v2.json"
coinToss: {
options: {
duration: "0d",
// Because we haven't defined `directory`, this endpoint will
// inherit the "different-cache-directory" value from default
// options defined below
},
url: "https://coin-toss.netlify.app/api/v1.json",
},

robots: "https://api.ashur.cab/robots/v2.json",
},

options: {
// Default options
directory: "different-cache-directory",
Expand Down

0 comments on commit 09838a9

Please sign in to comment.