ENF News Bot
Automated News Bot
- Joined
- Apr 15, 2022
- Messages
- 2,591
The
Update your configuration to use
Before (deprecated):
After:
No other changes are required. The binding name, TypeScript types, and runtime API (
For more information on configuring pipeline bindings, refer to Writing to streams.
Continue reading...
pipeline field inside the pipelines binding configuration in your Wrangler configuration file has been renamed to stream. The old field is deprecated but still accepted.Update your configuration to use
stream to avoid the deprecation warning.Before (deprecated):
Code:
{
"$schema": "./node_modules/wrangler/config-schema.json",
"pipelines": [
{
"binding": "MY_PIPELINE",
"pipeline": "<STREAM_ID>"
}
]
}
Code:
[[pipelines]]
binding = "MY_PIPELINE"
pipeline = "<STREAM_ID>"
After:
Code:
{
"$schema": "./node_modules/wrangler/config-schema.json",
"pipelines": [
{
"binding": "MY_PIPELINE",
"stream": "<STREAM_ID>"
}
]
}
Code:
[[pipelines]]
binding = "MY_PIPELINE"
stream = "<STREAM_ID>"
No other changes are required. The binding name, TypeScript types, and runtime API (
env.MY_PIPELINE.send(...)) remain the same.For more information on configuring pipeline bindings, refer to Writing to streams.
Continue reading...