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

Error when trying to build on Netlify #704

Open
frabac72 opened this issue Aug 3, 2024 · 1 comment
Open

Error when trying to build on Netlify #704

frabac72 opened this issue Aug 3, 2024 · 1 comment
Assignees
Labels
Needs Feedbacks Waiting Waiting on a response or other action
Milestone

Comments

@frabac72
Copy link

frabac72 commented Aug 3, 2024

Error: "/opt/build/repo/themes/ananke/layouts/robots.txt:3:1": parse failed: template: robots.txt:3: illegal number syntax: "-"
Googling around it would seem the two spaces before the final "dash" are what messes up the whole thing. Can one of two spaces near the end of line 3 be removed, please?

@davidsneighbour
Copy link
Collaborator

Hi @frabac72, it looks like I can't reproduce your issue. How does your netlify.toml look like? I think you might have to define a HUGO_ENV containing "production" in there somewhere.

My own netlify.toml has this part:

[context.production.environment]
HUGO_VERSION = "0.133.1"
HUGO_ENV = "production"

@davidsneighbour davidsneighbour added Waiting Waiting on a response or other action Needs Feedbacks labels Sep 19, 2024
@davidsneighbour davidsneighbour self-assigned this Sep 19, 2024
@davidsneighbour davidsneighbour added this to the unplanned milestone Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Feedbacks Waiting Waiting on a response or other action
Projects
None yet
Development

No branches or pull requests

2 participants