Closed depadiernos closed 6 years ago
Did you determine if a single header defined this way works @depadiernos ? Is the bug limited to multiple?
@fool The bug is not limited to multiple. Even with a single header, the deploy will fail. The following will fail also:
[[redirects]]
from = "/map"
to = "https://maps.google.com"
status = 200
force = true
headers = {X-From = "netlify_live"}
The TOML parser we use only supports version 0.2.0 of the TOML spec. Inline tables were added in 0.4.0.
Thanks @brycekahle ! That also explains https://github.com/netlify/bitballoon/issues/1469 !
I was referencing the TOML parser we have in netlifyctl. I'm not sure what the origin uses. We should make sure they match though.
CONTEXT: Unable to use the following in a netlify.toml file:
This causes the following error when running
netlifyctl deploy
WORKAROUND:
The following format, however, works: