Code works on local Hugo build but not on Pages

disableKinds = ["taxonomy"]
ignoreErrors = ["error-disable-taxonomy"]

Hugo builds but that code does not work on CP. It works locally

It is meant to disable the page that shows taxonomies e.g. /category/ but retain /category/name/

Both local and pages environment variables are the same Screenshot by Lightshot

I even downgraded Hugo to the version used as an example in the docs but it did not work either.