Minor Changes
-
0401c76: Improvements on string interpolation ({env.sth} or {context.headers.sth}) for different environments
As we mention in most of our docs, we usually expect a key-value
header
object in the context.
But Fetch-like environments don't have this kind of object but insteadHeaders
object which is a kindMap
.
Now Mesh can detect this and automatically convert it to the key-value object especially for Yoga users.Also Mesh now handles
env
in a better way for non-Node environments;Consider
import.meta.env
asenv
if available, else takeglobalThis
asenv
.