Failed to publish your Function. No such compatibility flag: cache_option_enabled

For Workes & Pages, what is the name of the domain?

example.com, Nextjs app

What is the error message?

Error: Failed to publish your Function. Got error: No such compatibility flag: cache_option_enabled

What is the issue or error you’re encountering

compatibility flag: cache_option_enabled is working locally but Pages fail to publish it on production

What are the steps to reproduce the issue?

Add Compatibility flag: cache_option_enabled in settings/functions Configure Production compatibility flags

Versions?

[email protected]
[email protected]
wrangler 3.67.1
Compatibility date: 2024-06-03
compatibility_flags = [“nodejs_compat”, “cache_option_enabled”]

The change was reverted - Revert "Redoing "#2073: Update Request to support cache option" with compat flags" by kentonv · Pull Request #2432 · cloudflare/workerd · GitHub

The flag doesn’t exist in production anymore.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.