我对新的配置文件netlify.yaml感到有点困惑。我想象它会是netlify.toml的临时替代品,但是如果没有toml文件,我会得到以下错误:
No netlify.toml found. This is needed to configure the function settings. For more info: https://github.com/netlify/netlify-lambda#installation当他们都在的时候,我有
failed during stage 'Reading and parsing configuration files': Multiple potential Netlify configuration files in "/opt/build/repo": netlify.toml, netlify.yaml我想访问“plugins”功能,但我不确定它是否存在于toml版本的配置中,因为这似乎不会触发任何事情:
[[plugins]]
type = "./.netlify/plugins/xxx"你会推荐什么是最好的行动方案?
发布于 2019-12-25 23:11:41
这是我在社区论坛(https://community.netlify.com/t/netlify-toml-vs-netlify-yaml/6482/2)上收到的回复:
We haven’t quite finished implementing the json and yml support, but these are the docs: https://docs.netlify.com/configure-builds/file-based-configuration/#json-and-yaml-configuration-files .
It is definitely not implemented in the private beta for build plugins yet, so you’ll need to stick with toml as the docs advise.https://stackoverflow.com/questions/59455127
复制相似问题