Skip to content

Commit

Permalink
cache json data
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Aug 5, 2023
1 parent 91e7843 commit 64e606a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
for = "/graphql*"
[headers.values]
Access-Control-Allow-Origin = "*"
[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = ["cache/data.json"]
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"isomorphic-fetch": "2.2.1",
"jest": "^29.6.2",
"netlify-cli": "^15.10.0",
"netlify-plugin-cache": "^1.0.3",
"prettier": "^1.18.2",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6",
Expand Down

0 comments on commit 64e606a

Please sign in to comment.