Skip to content
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

0.84.3 breaks deployments on Cloudflare Pages #8714

Closed
HorayNarea opened this issue Jun 30, 2021 · 2 comments
Closed

0.84.3 breaks deployments on Cloudflare Pages #8714

HorayNarea opened this issue Jun 30, 2021 · 2 comments

Comments

@HorayNarea
Copy link

HorayNarea commented Jun 30, 2021

Since 0.84.3 deployments on Cloudflare Pages are broken, as far as I can tell the problem boils down to this commit:

6c8c0c8

Cloudflare Pages sets these environment variables:

cloudflare-pages-env.d451584b-3b9e-49a6-9f43-006a4ae62185.log
(generated by deploying https://github.com/HorayNarea/cloudflare-pages-env and setting the build command to ./run.sh)

As you can see, in line 74 they also set NETLIFY=true but DEPLOY_PRIME_URL is not set, so that means the cache-directory is now also set to /opt/build/cache/hugo when deploying on Cloudflare Pages which leads to a failed build as you can see in this screenshot & build log:

screenshot

gecko-space.b4bd25b5-4e7e-40fd-833a-6128ca0b0e5b.log

@bep
Copy link
Member

bep commented Jun 30, 2021

As you can see, in line 74 they also set NETLIFY=true

Are you kidding me?

Oh, well -- you can work around this by setting the HUGO_CACHEDIR env var to something that exists and is writable on Cloudflare.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants