-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
zone_name
for deployment of custom hostnames (#4232)
* Use `zone_name` for deployment of custom hostnames * Simplify getting zone id from `zone_name` based on PR comments * Add some more tests * Add mock auth to tests --------- Co-authored-by: Samuel Macleod <[email protected]>
- Loading branch information
1 parent
109b159
commit 69b4303
Showing
5 changed files
with
239 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"wrangler": minor | ||
--- | ||
|
||
fix: use `zone_name` to determine a zone when the pattern is a custom hostname | ||
|
||
In Cloudflare for SaaS, custom hostnames of third party domain owners can be used in Cloudflare. | ||
Workers are allowed to intercept these requests based on the routes configuration. | ||
Before this change, the same logic used by `wrangler dev` was used in `wrangler deploy`, which caused wrangler to fail with: | ||
|
||
✘ [ERROR] Could not find zone for [partner-saas-domain.com] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters