I’m in the process of trying to publish an update to a website, where I utilised the new resource.Get method to format and crop images from the assets folder (no SCSS or SASS involved). However, Netlify is failing to build the site, because of an error regarding resource.Get - it says file not found, and is looking for the assets folder in the theme directory (however, the assets file is in the root of the project, not the theme).
I’ve seen the assetDir
option in the configuration, and tried setting it to /assets
- which then also defaulted (on my local machine) to the theme folder. Removing the leading slash seems to work locally again for the root of the project. I had hoped setting the option would work with Netlify, but it does not seem to have helped. I also attempted to move the assets folder into the theme folder, as it seems to be where Netlify was looking. No change. Is the resource.Get functionality tied into the Hugo Pipes system in some way?
I also tried committing the resources folder as was recommended for SCSS, but that did not help.
Thanks in advance for any insights you may have.