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" }
]
Was this page helpful?