Hi everyone,
I’m trying to use Netlify dev with Hugo. When I run netlify dev
, it works fine in the terminal but when I visit http://localhost:8888/ the browser throws an error for ERR_TOO_MANY_REDIRECTS
.
I am using the following options inside of my netlify.toml:
[build]
publish = "public"
command = "hugo --gc && cp _redirects public/_redirects"
functions = "./functions"
[context.branch-deploy]
command = "hugo --gc -b && cp _redirects public/_redirects && cp _branch_headers public/_headers"
functions = "./functions"
[dev]
framework = "#custom"
command = "hugo serve && cp _redirects public/_redirects"
targetPort = 1313
publish = "public"
autoLaunch = true
Here’s a screenshot of everyone:
Does anyone know how to fix this?
Thanks,
Dave.