-
Notifications
You must be signed in to change notification settings - Fork 335
Allow worker with no routes to be published #2024
Conversation
Confused if the behavior of |
@jspspike - looking at this now. An aside, but relevant to your PR... would you add a commit that updates this error message:
So that instead of |
The test you mention (embedded above) generates a name = "top_level_zoneless_env_zoned_single_route_empty"
type = "webpack"
account_id = "fakeaccountid"
workers_dev = true
[env.test]
route = ""
zone_id = "samplezoneid" Looking at this, I would assume the intention of these settings is to have no I assume this should be inherited based on the way we document the configuration, seen here: Maybe @Electroid could comment on this assumption - and if we're in agreement, I think the test might need to be changed to expect 1 zoneless route (the workers.dev test route)? This would also mean some code is changed somewhere to inherit this top-level |
Going off of the docs linked I made I went through the changed tests and tried to verify that the behavior is intended, but any changed tests should be looked at closely by the reviewer to make sure some intended behavior isn't changed since this will affect a lot of things in terms of what routes are deployed on publish |
} | ||
}; | ||
|
||
eprintln!("{:#?}", &wrangler_toml); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug statement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes to print the toml during tests, all the other toml helper functions had them except this one for some reason
I tested this with some variations and it all looked fine! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving because I tested the code and it looked good!
Fixes #1700