文派体验场 — WordPress Playground 自托管站点
api.wenpai.net rejects wp_blog custom header in CORS preflight, causing Service Worker pre-fetch failures. Strip these WordPress- specific headers before redirected requests. v1.0.0 → v1.1.0 |
||
|---|---|---|
| blueprints | ||
| mu-plugins | ||
| README.md | ||
play.wenpai.net
文派体验场 — WordPress Playground 自托管站点
目录结构
mu-plugins/
wenpai-accelerate.php # 国内加速 mu-plugin(API 重定向 + Cravatar)
blueprints/
starter.json # 默认蓝图(中文环境 + 加速)
wpmind.json # WPMind 插件体验蓝图
mu-plugins/wenpai-accelerate.php
轻量级国内加速插件,替代 wp-china-yes 在 WASM 环境中的角色:
api.wordpress.org→api.wenpai.netdownloads.wordpress.org→downloads.wenpai.net- Gravatar → Cravatar 国内源
作为 mu-plugin 自动加载,无需激活,无设置页面。
部署
蓝图通过 writeFile step 将 mu-plugin 写入 Playground 虚拟文件系统:
{
"step": "writeFile",
"path": "/wordpress/wp-content/mu-plugins/wenpai-accelerate.php",
"data": "<php source>"
}
服务器
- 生产: feicode-prod (45.117.8.70)
- 站点根目录:
/www/wwwroot/play.wenpai.net/ - 详细文档: 见 wenpai VM
docs/services/playground.md