mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-04 02:40:50 +08:00
- Added Cloudflare and OpenNext configurations to .gitignore. - Updated next.config.mjs to disable image optimization for better performance with CDN. - Modified fetchJson function in github.ts to use 'force-cache' for improved data fetching efficiency. - Updated multiple image assets for the documentation site.
16 lines
400 B
JavaScript
16 lines
400 B
JavaScript
import { createMDX } from 'fumadocs-mdx/next';
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
reactStrictMode: true,
|
|
images: {
|
|
// 站内图片均为已按展示尺寸截取的静态资源,直接由 CDN 提供,
|
|
// 避免在 Cloudflare Workers 上依赖运行时图片优化服务。
|
|
unoptimized: true,
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|