The Tanga Yacht Club website (https://tanga-yacht-club.or.tz OR https://tyc-tz.netlify.app/) is a simple static website built using Eleventy, Netlify CMS and Netlify hosting.
This is my first Jamstack project.
For responsive images the objective is to use Netlify image Transformations. However I am unable to make this work. Here’s a summary of where I am at:
- Repo is GitHub - davegardner/tyc4: Tanga Yacht Club
- .gitignore EXCLUDES
_site/
yet repo contains images from that folder. Those images were uploaded with Netlify CMS. Why are they included from_site/
and not present inimages/uploads/
? - Images in
images/uploads/
seem correctly labelled asStored with Git LFS
. - Accessing an image such as https://tanga-yacht-club.or.tz/images/uploads/_DAG6862.jpg?nf_resize=fit&w=100&h=100 delivers a full-sized image rather than a 100 x 100 image.
Here’s some further diagnostics:
dave@nuc3:~/Projects/tyc4$ netlify lm:info
✔ Checking Git version [2.25.1]
✔ Checking Git LFS version [2.11.0]
✔ Checking Git LFS filters
✔ Checking Netlify's Git Credentials version [0.1.9]
dave@nuc3:~/Projects/tyc4$ git lfs ls-files
958147914a * images/uploads/IMG20200625084513.jpg
4af7c3968a * images/uploads/TYC-logo-100.png
3463ba27ec * images/uploads/TYC-logo-1600.jpg
30f3268e3d * images/uploads/TYC-logo-200.jpg
4bb9b3ce2a * images/uploads/TYC-logo-200.png
58978af0a1 * images/uploads/TYC-logo-32.png
1891837639 * images/uploads/TYC-logo-400.jpg
3300d1d0f5 * images/uploads/TYC-logo-64.png
1a109550e4 * images/uploads/TYC-logo-800.jpg
6ad04e9a88 * images/uploads/_DAG6862.jpg
2a43319932 * images/uploads/_DAG6879.jpg
5e8c1a3197 * images/uploads/_DAG6963.jpg
a6f837de69 * images/uploads/_DAG6991.jpg
dave@nuc3:~/Projects/tyc4$ netlify link
Site already linked to "tyc-tz"
Admin url: https://app.netlify.com/sites/tyc-tz
To unlink this site, run: netlify unlink
dave@nuc3:~/Projects/tyc4$ netlify lm:setup
Logging into your Netlify account...
Opening https://app.netlify.com/authorize?response_type=ticket&ticket=blah
---------------------------
Error: Unable to open browser automatically
spawn /home/dave/.local/share/netlify-cli/node_modules/netlify-lm-plugin/node_modules/@netlify/cli-utils/node_modules/cli-ux/lib/xdg-open ENOENT
Please open your browser & open the URL below to login:
https://app.netlify.com/authorize?response_type=ticket&ticket=blah
---------------------------
TypeError: Cannot read property 'slug' of undefined
dave@nuc3:~/Projects/tyc4$
The automatic browser load fails but the link works fine and authorization is granted for Netlify CLI.
However, there is no .lfsconfig
file:
dave@nuc3:~/Projects/tyc4$ ls -al .lfsconfig
ls: cannot access '.lfsconfig': No such file or directory
The documentation (Large Media setup | Netlify Docs) indicates I should have a .lfsconfig
file and should commit that to the repo. So I found this support item: Getting this error while configuring netlify lfs : Provisioning Netlify Large Media × Provisioning Netlify Large Media → Error {"error":"Large Media addon doesn't support the repo linked to multiple sites - #8 by luke and followed the steps to relink the repository. That resulted in a .lfsconfig
being created !! But had no effect on the image transformations.
dave@nuc3:~/Projects/tyc4$ netlify logout
The "process.env.NETLIFY_AUTH_TOKEN" is still set in your terminal session
To logout completely, unset the environment variable
dave@nuc3:~/Projects/tyc4$ unset NETLIFY_AUTH_TOKEN
dave@nuc3:~/Projects/tyc4$ netlify logout
Already logged out
To login run "netlify login"
dave@nuc3:~/Projects/tyc4$ netlify login
Logging into your Netlify account...
Opening https://app.netlify.com/authorize?response_type=ticket&ticket=blah
You are now logged into your Netlify account!
Run netlify status for account details
To see all available commands run: netlify help
dave@nuc3:~/Projects/tyc4$ netlify plugins:install netlify-lm-plugin
Installing plugin netlify-lm-plugin... installed v1.0.0
dave@nuc3:~/Projects/tyc4$ netlify lm:install
✔ Checking Git version [2.25.1]
✔ Checking Git LFS version [2.11.0]
✔ Checking Git LFS filters
✔ Installing Netlify's Git Credential Helper for Linux
✔ Configuring Git to use Netlify's Git Credential Helper
dave@nuc3:~/Projects/tyc4$ netlify link
Site already linked to "tyc-tz"
Admin url: https://app.netlify.com/sites/tyc-tz
To unlink this site, run: netlify unlink
dave@nuc3:~/Projects/tyc4$ netlify lm:setup
⠏ Provisioning Netlify Large Media
✔ Provisioning Netlify Large Media
✔ Configuring Git LFS for this site
dave@nuc3:~/Projects/tyc4$ ls -al .lfsconfig
-rw-rw-r-- 1 dave dave 91 Jul 17 08:40 .lfsconfig
dave@nuc3:~/Projects/tyc4$ git add .lfsconfig
That’s as far as I have been able to diagnose.
Any help would be gratefully received as I’ve already spent more than a day trying to nut this out.