You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Miniflare exports a serializeConfig helper to generate a binary capnp config from a Config object.
workerd's examples make heavy use of capnp embed expressions, but I can't figure out how to define those via JS. I tried to look through the sources for capnp-ts and capnp but couldn't glean anything from them yet.
My questions are:
How can I define an embed expression, either for serializeConfig() or directly via capnp-ts?
Would this still embed the file contents directly when compiling the config, or would the file be included at runtime?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Miniflare exports a serializeConfig helper to generate a binary capnp config from a Config object.
workerd's examples make heavy use of capnp embed expressions, but I can't figure out how to define those via JS. I tried to look through the sources for capnp-ts and capnp but couldn't glean anything from them yet.
My questions are:
Beta Was this translation helpful? Give feedback.
All reactions