/
githubmirror
/
marktext
Обзор
Документация
Войти
/
githubmirror
/
marktext
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/website/next.config.ts
24 строки
821 B
Ran Luo
refactor(website): redesign landing page, drop markdown engine deps (#4312)
29 май 2026, 12:23
Не верифицирован
29 май 2026, 12:23
320255d
Код
Авторство
О чём код?
import type { NextConfig } from 'next' import { fileURLToPath } from 'node:url' import { dirname, resolve } from 'node:path' import { initOpenNextCloudflareForDev } from '@opennextjs/cloudflare' const __dirname = dirname(fileURLToPath(import.meta.url)) const config: NextConfig = { reactStrictMode: true, output: 'standalone', outputFileTracingRoot: resolve(__dirname, '../..'), images: { unoptimized: true } // www -> apex redirect lives in middleware.ts. We tried Next's redirects() // here first, but OpenNext Cloudflare currently does not substitute // `:path*` tokens in destination URLs, so requests landed on the literal // /:path* path and 404'd. Middleware uses NextResponse.redirect and avoids // the templating layer entirely. } initOpenNextCloudflareForDev() export default config