Skip to content

Commit

Permalink
fix: only show fetch warning if on old compatibility_date
Browse files Browse the repository at this point in the history
Now that we have the `allow_custom_ports` compatibility flag, we only need to show the fetch warnings when that flag is not enabled.

Fixes cloudflare/workerd#2955
  • Loading branch information
petebacondarwin committed Nov 7, 2024
1 parent 2d89c21 commit b09dc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wrangler/src/deployment-bundle/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ export function shouldCheckFetch(
compatibilityDate: string = "2000-01-01", // Default to some arbitrary old date
compatibilityFlags: string[] = []
): boolean {
// Yes, the logic can be less verbose than this but doing it this way makes is very clear.
// Yes, the logic can be less verbose than this but doing it this way makes it very clear.
if (compatibilityFlags.includes("ignore_custom_ports")) {
return true;
}
Expand Down

0 comments on commit b09dc38

Please sign in to comment.