import CodeEditor from '@/components/CodeEditor' import { CDN_DEMO_CN_URL, CDN_DEMO_URL } from '@/constants' import { useLanguage } from '@/i18n/context' export default function CdnSetup() { const { isZh } = useLanguage() return (
{isZh ? 'CDN 提供两种构建版本:Demo 版用于快速体验,标准版用法与 NPM 一致。' : 'CDN provides two builds: Demo for quick testing, standard build with usage identical to NPM.'}
{isZh ? '自动初始化并使用内置 Demo LLM,无需任何配置:' : 'Auto-initializes with built-in demo LLM, no configuration needed:'}
| {isZh ? '位置' : 'Location'} | URL |
|---|---|
| {isZh ? '全球' : 'Global'} | {CDN_DEMO_URL} |
| {isZh ? '中国' : 'China'} | {CDN_DEMO_CN_URL} |