⚙️ 设置
管理博客的各项配置,所有数据仅保存在当前浏览器中。
📄
检测中...
项目根目录下的 config.json
📋 config.json 格式参考
{
"site": { "url": "https://xxx.pages.dev" },
"github": {
"token": "ghp_xxxx",
"owner": "你的用户名",
"repo": "仓库名",
"branch": "main",
"contentDir": "src/content/blog/"
},
"imageHost": {
"type": "r2",
"r2": {
"accountId": "", "accessKeyId": "",
"secretAccessKey": "", "bucket": "",
"domain": "", "prefix": "blog/"
},
"s3": {
"endpoint": "", "region": "us-east-1",
"accessKeyId": "", "secretAccessKey": "",
"bucket": "", "domain": "",
"prefix": "images/", "pathStyle": false
},
"webdav": {
"url": "", "username": "", "password": "",
"directory": "blog-images/", "domain": ""
}
}
} 💡 只需填写你使用的图床类型的字段,其他留空即可