docs: stable CDN

This commit is contained in:
Simon
2025-12-16 20:17:58 +08:00
parent 2fee2d5ea3
commit aa694e3b85
6 changed files with 60 additions and 23 deletions
@@ -1,5 +1,6 @@
import BetaNotice from '@/components/BetaNotice'
import CodeEditor from '@/components/CodeEditor'
import { CDN_CN_URL, CDN_URL } from '@/constants'
export default function CdnSetup() {
return (
@@ -15,11 +16,16 @@ export default function CdnSetup() {
<CodeEditor
className="mb-8"
code={`
// 仅供测试使用,稳定 CDN 待定
<script src="https://hwcxiuzfylggtcktqgij.supabase.co/storage/v1/object/public/demo-public/v0.0.4/page-agent.js" crossorigin="true" type="text/javascript"></script>
// CDN: \t${CDN_URL}
// Mirror: \t${CDN_CN_URL}
<script
src="${CDN_URL}"
crossorigin="true"
type="text/javascript"
></script>
<script>
window.pageAgent.panel.show()
// window.pageAgent
</script>`}
/>