We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc3dbe7 commit bf1a6f6Copy full SHA for bf1a6f6
.changeset/polite-poems-fall.md
@@ -0,0 +1,5 @@
1
+---
2
+"@opennextjs/cloudflare": patch
3
4
+
5
+fix: type error during build
packages/cloudflare/src/api/overrides/incremental-cache/regional-cache.ts
@@ -97,7 +97,8 @@ class RegionalCache implements IncrementalCache {
97
}
98
99
get #hasAutomaticCachePurging() {
100
- const cdnInvalidation = globalThis.openNextConfig.default?.override?.cdnInvalidation;
+ // The `?` is required at `openNextConfig?` or the Open Next build fails because of a type error
101
+ const cdnInvalidation = globalThis.openNextConfig?.default?.override?.cdnInvalidation;
102
103
return cdnInvalidation !== undefined && cdnInvalidation !== "dummy";
104
0 commit comments