/
githubmirror
/
marktext
Обзор
Документация
Войти
/
githubmirror
/
marktext
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/website/open-next.config.ts
10 строк
606 B
Ran Luo
fix(website): serve prerendered docs pages via static-assets cache (#4335)
31 май 2026, 16:57
Не верифицирован
31 май 2026, 16:57
8f6dade
Код
Авторство
О чём код?
import { defineCloudflareConfig } from '@opennextjs/cloudflare' import staticAssetsIncrementalCache from '@opennextjs/cloudflare/overrides/incremental-cache/static-assets-incremental-cache' // Every route in this app is statically prerendered (`dynamic = 'force-static'`), // so we serve the cached HTML directly from Workers static assets. The default // "dummy" incremental cache would 404 dynamic SSG routes like /docs/[...slug] // because the worker has no place to look up their prerendered HTML at runtime. export default defineCloudflareConfig({ incrementalCache: staticAssetsIncrementalCache })