I’m using Git LFS (hosted on GitHub, not Netlify Large Media!), and building the website fails because Netlify does not correctly fetch the large files.
Note that I’m not tracking images with Git LFS, but rather *.gltf and certain json files. Git LFS is configured through .gitattributes, like so:
*.gltf filter=lfs diff=lfs merge=lfs -text projects/*/options/*/simData.json filter=lfs diff=lfs merge=lfs -text
I tried setting “GIT_LFS_FETCH_INCLUDE” = “*” (as suggested by LFS file is not downloaded from server), but that did not make any change, the files were still not fetched correctly (
I even tried manually running
git lfs fetch --all as part of my build command, but that somehow failed with
8:00:42 AM: Executing user command: git lfs fetch --all && yarn run webpack -p 8:00:42 AM: fetch: 12 object(s) found, done 8:00:42 AM: fetch: Fetching all references... 8:00:42 AM: batch request: missing protocol: "" 8:00:42 AM: error: failed to fetch some objects from ''
(full build log is here: https://app.netlify.com/sites/oculight-docs/deploys/5ea674c241a4cc000697fdeb)