Why does the Netlify template require to have at least overrides/hooks/on_env.py as hook and generate_graph: false as extra?
#255
Answered
by
Mara-Li
ooker777
asked this question in
Q&A — Template
-
|
I notice the minimal workable site_name: your_site_name
theme:
name: 'material'
custom_dir: overrides
hooks:
- overrides/hooks/on_env.py
extra:
generate_graph: falseError if the hook is not providedError if the extra is not providedThe code works if |
Beta Was this translation helpful? Give feedback.
Answered by
Mara-Li
Dec 17, 2023
Replies: 1 comment 7 replies
-
|
Extra and hooks have different purpose. |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
ooker777
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Extra and hooks have different purpose.
Hooks run python script and is needed for the build.
Extra add custom yaml parameters needed to tell the on_env script how to build the website.