Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eleventy depends on API #16

Closed
szepeviktor opened this issue Mar 2, 2024 · 5 comments
Closed

Eleventy depends on API #16

szepeviktor opened this issue Mar 2, 2024 · 5 comments

Comments

@szepeviktor
Copy link
Contributor

szepeviktor commented Mar 2, 2024

When run locally, npm run prod errors out with

Caching an already local asset is not yet supported.

const response = await EleventyFetch(url, {
duration: '0s',
type: 'json',
});

@adamlaki
Copy link
Member

adamlaki commented Mar 2, 2024

That is interesting, it is run fine on my local environment.

@szepeviktor
Copy link
Contributor Author

szepeviktor commented Mar 2, 2024

Do you have anything Eleventy related set up on your machine?
Or a webserver maybe??

@szepeviktor
Copy link
Contributor Author

@adamlaki
Copy link
Member

adamlaki commented Mar 2, 2024

Ohh, yeah! The API URL comes from .env. How can I add that on GH?

@szepeviktor
Copy link
Contributor Author

#19

It would be nice to run 100% locally, without any network traffic.

@adamlaki adamlaki closed this as completed Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants