首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Netlify.toml vs netlify.yaml

Netlify.toml vs netlify.yaml
EN

Stack Overflow用户
提问于 2019-12-23 20:09:19
回答 1查看 273关注 0票数 0

我对新的配置文件netlify.yaml感到有点困惑。我想象它会是netlify.toml的临时替代品,但是如果没有toml文件,我会得到以下错误:

代码语言:javascript
复制
No netlify.toml found. This is needed to configure the function settings. For more info: https://github.com/netlify/netlify-lambda#installation

当他们都在的时候,我有

代码语言:javascript
复制
 failed during stage 'Reading and parsing configuration files': Multiple potential Netlify configuration files in "/opt/build/repo": netlify.toml, netlify.yaml

我想访问“plugins”功能,但我不确定它是否存在于toml版本的配置中,因为这似乎不会触发任何事情:

代码语言:javascript
复制
[[plugins]]
  type = "./.netlify/plugins/xxx"

你会推荐什么是最好的行动方案?

EN

回答 1

Stack Overflow用户

发布于 2019-12-25 23:11:41

这是我在社区论坛(https://community.netlify.com/t/netlify-toml-vs-netlify-yaml/6482/2)上收到的回复:

代码语言:javascript
复制
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.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59455127

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档