CaiJimmy / hugo-theme-stack-starter

A quickstart template to create a Hugo blog using hugo-theme-stack
https://demo.stack.jimmycai.com
MIT License
306 stars 105 forks source link

How to deploy it at Cloudflare pages? #10

Closed Lemonawa closed 1 year ago

Lemonawa commented 1 year ago

I tried many ways, but they weren't ok some useful links: https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site/ https://developers.cloudflare.com/pages/

CaiJimmy commented 1 year ago

I tried many ways, but they weren't ok

At least tell us what did you try, and what errors did you encounter.

Lemonawa commented 1 year ago
  1. Build command: hugo Build directory: public result: 404

  2. Build command: amazon-linux-extras install golang1.11 && hugo --gc --minify Build directory: public result: 404

Lemonawa commented 1 year ago

may cannot install go at Cloudflare pages.

CaiJimmy commented 1 year ago

Just tried using default configuration + environment variable to set Hugo version, and there's no issue.

image image

Lemonawa commented 1 year ago

it works. thanks