import { useTranslation } from 'react-i18next' import BetaNotice from '@/components/BetaNotice' import CodeEditor from '@/components/CodeEditor' import { CDN_CN_URL, CDN_URL } from '@/constants' export default function CdnSetup() { const { i18n } = useTranslation() const isZh = i18n.language === 'zh-CN' return (

{isZh ? 'CDN 引入' : 'CDN Setup'}

{isZh ? '通过 CDN 快速集成 page-agent,无需复杂的构建配置。默认使用演示模型。' : 'Fastest way to integrate page-agent via CDN. No complex build setup needed. Demo model will be used by default.'}

{isZh ? 'CDN 地址' : 'CDN URLs'}

{isZh ? '位置' : 'Location'} URL
{isZh ? '全球' : 'Global'} {CDN_URL}
{isZh ? '中国镜像' : 'China Mirror'} {CDN_CN_URL}

{isZh ? '快速开始' : 'Quick Start'}

`} />

⚠️ {isZh ? '注意事项' : 'Notes'}

  • • {isZh ? '生产环境建议使用固定版本号' : 'Use fixed version number in production'}
  • • {isZh ? '确保 HTTPS 环境下使用' : 'Ensure HTTPS environment'}
  • •{' '} {isZh ? '配置 CSP 策略允许脚本执行' : 'Configure CSP policy to allow script execution'}
) }