Skip to content

Commit 27a82bd

Browse files
committed
fix: correct typeof check
1 parent eb76546 commit 27a82bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/run/handlers/cache.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export class NetlifyCacheHandler implements CacheHandlerForMultipleVersions {
197197
join(this.options.serverDistDir, '..', 'prerender-manifest.json'),
198198
) as PrerenderManifest
199199

200-
if (typeof cacheControl !== undefined) {
200+
if (typeof cacheControl !== 'undefined') {
201201
// instead of `revalidate` property, we might get `cacheControls` ( https://github.com/vercel/next.js/pull/76207 )
202202
// then we need to keep track of revalidate values via SharedCacheControls
203203
const { SharedCacheControls } = await import(

0 commit comments

Comments
 (0)