Skip to content

Commit a2410f4

Browse files
committed
update comment
1 parent efbacab commit a2410f4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/cloudflare/src/api/overrides/incremental-cache/static-assets-incremental-cache.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
import { debug, error } from "@opennextjs/aws/adapters/logger.js";
1+
import { error } from "@opennextjs/aws/adapters/logger.js";
22
import type { CacheValue, IncrementalCache, WithLastModified } from "@opennextjs/aws/types/overrides.js";
33
import { IgnorableError } from "@opennextjs/aws/utils/error.js";
44

55
import { getCloudflareContext } from "../../cloudflare-context.js";
66
import { debugCache, FALLBACK_BUILD_ID } from "../internal.js";
77

8+
// Assets inside `cdn-cgi/...` are only accessible by the worker.
89
export const CACHE_DIR = "cdn-cgi/_next_cache";
910

1011
export const NAME = "cf-static-assets-incremental-cache";
1112

1213
/**
13-
* This cache uses Workers static assets and is not recommended. It should only be used for applications
14-
* that do NOT want revalidation and ONLY want to serve pre-rendered data.
14+
* This cache uses Workers static assets.
15+
*
16+
* It should only be used for applications that do NOT want revalidation and ONLY want to serve prerendered data.
1517
*/
1618
class StaticAssetsIncrementalCache implements IncrementalCache {
1719
readonly name = NAME;

0 commit comments

Comments
 (0)