fix(kimi): support API-key setup for Kimi Code

This commit is contained in:
Hunter Bown
2026-05-25 23:39:34 -05:00
parent 2f3750b850
commit ab38635f78
11 changed files with 248 additions and 36 deletions
+4
View File
@@ -11,6 +11,10 @@ interface KVNamespace {
}
async function getKv(): Promise<KVNamespace | undefined> {
if (process.env.NEXT_PHASE === "phase-production-build") {
return undefined;
}
try {
const mod = await import("@opennextjs/cloudflare");
const ctx = await mod.getCloudflareContext({ async: true });