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

How do I always use Cloudinary URLs when developing locally? #117

Open
theetrain opened this issue Apr 30, 2021 · 0 comments
Open

How do I always use Cloudinary URLs when developing locally? #117

theetrain opened this issue Apr 30, 2021 · 0 comments

Comments

@theetrain
Copy link

theetrain commented Apr 30, 2021

Hello, thanks for building this plugin.

From reading the documentation, I understand that setting only_prod: false should always generate image tags with their cloudinary URL. However, when running Jekyll locally, my images appear like this:

<img src="http://0.0.0.0:4000/nature-mountains.jpg" 
  srcset="https://res.cloudinary.com/etrain/image/fetch/c_limit,f_auto,q_auto,w_320/http://0.0.0.0:4000/nature-mountains.jpg 320w, 
  https://res.cloudinary.com/etrain/image/fetch/c_limit,f_auto,q_auto,w_365/http://0.0.0.0:4000/nature-mountains.jpg 365w,
  https://res.cloudinary.com/etrain/image/fetch/c_limit,f_auto,q_auto,w_410/http://0.0.0.0:4000/nature-mountains.jpg 410w, 
  https://res.cloudinary.com/etrain/image/fetch/c_limit,f_auto,q_auto,w_455/http://0.0.0.0:4000/nature-mountains.jpg 455w, 
  https://res.cloudinary.com/etrain/image/fetch/c_limit,f_auto,q_auto,w_500/http://0.0.0.0:4000/nature-mountains.jpg 500w" 
  sizes="100vw" alt="test" crossorigin="anonymous" />

How do I not use localhost|http://0.0.0.0 and only use production URLs when developing locally? Once I understand this better, I would be happy to make a PR to the documentation.

I'm using:

  • jekyll-cloudinary v1.14.1
  • jekyll v4.2.0
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

1 participant