Setting DO script_name only in dev?

Hey folks, in order to work with Durable Objects with getPlatformProxy, you must use a separate worker and script_name. That's all fine, but is there a way to ensure the script_name is only set in dev, since that seems to have an effect in prod too?
[durable_objects]
bindings = [
{ name = "DATA_NOTIFIER", class_name = "DataNotifier", script_name = "dev-data-notifier-worker" }
]
[durable_objects]
bindings = [
{ name = "DATA_NOTIFIER", class_name = "DataNotifier", script_name = "dev-data-notifier-worker" }
]
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server