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

Netlify needs netlify.toml modified if you do a cp -a from exampleSite #65

Open
richtong opened this issue Dec 25, 2023 · 0 comments
Open

Comments

@richtong
Copy link

The current netlify.toml allows a push that servers out of the exampleSite which is great for just getting started.

Suggest a documentation fix so that there is an alternative build so it serves and you can adjust the Netlify build command to it easily by putting a file in ./exampleSits/netlify.toml and this will overwrite the netlify.toml in the main site. So if you actually do the copy it will build correctly, so

./exampleSite/netlify.toml ha:

[build]
  publich = "public"
  command = "hugo --gc"

This way you have the option to do the quick publish or you have the option to do the publish from main (in production where you don't want to use exampleSite). I can issue a PR for this if you like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant