-
Notifications
You must be signed in to change notification settings - Fork 5
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
Process for referencing local images before remote deployment? #3
Comments
Nice suggestion! And maybe! I know @nhoizey added this functionality to jekyll-cloudinary – I'll look at how he did it... nhoizey/jekyll-cloudinary@f700819 |
This was my workaround: That data gets set here: Which is based on an environment variable PROD. So on Netlify I set the build process to be |
@eeeps as you mentioned Here's how I do it for my own personal site: I include and run the plugin only for production build because I'm fine with unoptimized local images during development (and faster build), but I could also run it in development mode with different options, including the target |
Was there every a resolution on best practice for handling this with eleventy-respimg, short of uploading all images to a public domain? Chris Coyier's solution is clever, but I'd rather do something along these lines without ditching the eleventy-respimg shortcode/functionality entirely. |
Hey Eric!
I'm fairly new to Cloudinary and Eleventy, so I'm just trying to get my head around the best process for this stuff. If I'm developing my site locally, and I add a new image to my images folder, that obviously not yet anywhere publicly remote that Cloudinary can fetch or upload from, so until I deploy the site, those image references will be broken, right? Is there any way to get around that at this point?
I noticed you have "allow relative src paths" on the to-do list - will that allow something like referencing local images in a DEV env, and then using the cloudinary URLs when building for a remote/PROD env?
The text was updated successfully, but these errors were encountered: