我对新的配置文件netlify.yaml感到有些困惑。 我以为它将替代netlify.toml,但是如果没有toml文件,我会收到以下错误:
#IfWinActive ahk_class MediaPlayerClassicW ; only if it is the active window
^l::
send_key := !send_key ; toggles the variable "send_key" between true and false
if (send_key) ; is true
SetTimer send_the_key, 10000
else
SetTimer send_the_key, Off
return
send_the_key:
If WinActive("ahk_class MediaPlayerClassicW")
send /
else ; if you want to stop the timer whenever the window gets inactive
{
SetTimer send_the_key, Off
send_key := false
}
return
#IfWinActive ; turn off context sensitivity
当他们两个都在场的时候
No netlify.toml found. This is needed to configure the function settings. For more info: https://github.com/netlify/netlify-lambda#installation
我想访问“插件”功能,但不确定在配置的toml版本中是否存在,因为这似乎不会触发任何事情:
failed during stage 'Reading and parsing configuration files': Multiple potential Netlify configuration files in "/opt/build/repo": netlify.toml, netlify.yaml
您会建议什么是最佳的做法?
答案 0 :(得分:0)
这是我在社区论坛(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.