juha
juha
CDCloudflare Developers
Created by juha on 9/6/2024 in #pages-help
404.html Files in Subdirectories Not Used
@Chaika Thank you for pointing me to the Assets uploaded tab, I hadn't noticed it before.
9 replies
CDCloudflare Developers
Created by juha on 9/6/2024 in #pages-help
404.html Files in Subdirectories Not Used
Okay, problem solved. I added an environment variable HUGO_VERSION and gave it the value 0.134.1 (latest Hugo version). Now the 404 pages are generated and applied as they should.
9 replies
CDCloudflare Developers
Created by juha on 9/6/2024 in #pages-help
404.html Files in Subdirectories Not Used
I have them in the layouts folder, and Hugo should (and does on my dev machine) generate the final 404.html files inside the lang folders. So layouts/404.en.html should end up in /en/404.html, but for some reason this doesn't happen when the site is build on Cloudflare.
9 replies
CDCloudflare Developers
Created by juha on 9/6/2024 in #pages-help
404.html Files in Subdirectories Not Used
Thanks. Looks like the 404 pages are missing in Assets uploaded, but they are generated on my local dev environment when I run Hugo. Curious.
9 replies
CDCloudflare Developers
Created by juha on 9/6/2024 in #pages-help
404.html Files in Subdirectories Not Used
No guesses what might be going on?
9 replies