Comments (5)
Hey @winston0410,
I know itβs old, but did you end up finding a solution?
:)
from eleventy-fetch.
So i made it work:
here is an example with a graphql Api, but the idea is the same, just make sure that you wait the resolve of the promise so the data is actually updated, otherwise it will not update the site.
(also, having an option in the config to allow/disallow the cache is not a bad idea imho :-D
https://gitlab.coko.foundation/julientaq/flax-aperture/-/blob/master/src/data/articleQuery.js
from eleventy-fetch.
For the record, the idea here is to use axios
behind the scenes instead of node-fetch
right?
Putting this one in the enhancement queue
from eleventy-fetch.
I think it would be awesome to pull out the fetching code to allow adapters here, especially since Node is getting first class fetch.
from eleventy-fetch.
This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open.
View the enhancement backlog here. Donβt forget to upvote the top comment with π!
from eleventy-fetch.
Related Issues (20)
- Change or disable "Caching: https://????" message HOT 1
- "ENOENT: no such file or directory" error if cache key has a slash in it HOT 1
- Cannot use 'in' operator to search for 'date' in 1
- `node-fetch` 2.6.1: security alert (CVE-2022-0235) HOT 2
- Rename to `eleventy-fetch` HOT 2
- Adapters for HTTP client under the hood HOT 1
- Add support for caching non-GET requests HOT 4
- Mark @11ty/eleventy-cache-assets package as deprecated HOT 1
- Pass in a custom fetching function rather than a URL HOT 1
- Human readable cache file names HOT 2
- how to access response header info? HOT 8
- Using fetched/cached data in a web component HOT 1
- Reusing build time cache with serverless HOT 5
- Improve error handling by including response as the cause HOT 2
- Allow using GitHub access token or oauth to surpass api.github.com ratelimits HOT 6
- Add more debug output to AssetCache HOT 1
- Should `dryRun` skip reading from cache? HOT 1
- Passing header x-api-key but getting 403 HOT 8
- Cloudflare Workers: Could not resolve "fs" HOT 2
- Provide a Timeout Feature to EleventyFetch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eleventy-fetch.