f-mahler / kirby-vercel
Kirby Vercel 插件
1.0.5
2021-01-11 16:54 UTC
Requires
This package is auto-updated.
Last update: 2024-09-04 11:34:13 UTC
README
此插件不再受支持。很遗憾,没有时间来维护这个插件。
Kirby Vercel
这是一个插件,可以从 Kirby 控面板直接触发静态站点的 Vercel 部署钩子。
为了让它工作,Kirby 需要在自己的服务器上配置为无头 CMS,例如使用 KQL 或 better-rest 从你的静态站点生成器(例如 Nuxt、Next 或你喜欢的任何其他)中获取内容,然后通过自己的仓库部署到 Vercel。
它不会生成直接部署到 Vercel 的 Kirby 静态站点
安装
下载
下载并将此存储库复制到 /site/plugins/kirby-vercel
Composer
composer require f-mahler/kirby-vercel
设置
/site/config/config.php
return [ // Required to make the button work. You can generate a Deployment Hook in Project Settings -> Git Integration in Vercel's Dashboard 'f-mahler.kirby-vercel.deployurl' => '<deployUrl>', // To show the last deployment in the field, you need to add these settings 'f-mahler.kirby-vercel.token' => '<token>', 'f-mahler.kirby-vercel.projectid' => '<projectId>', // Automatically deploy when triggering one of the following hooks. See Kirby documentation for possible options 'f-mahler.kirby-vercel.hooks' => [ 'site.update:after', 'page.update:after' ] ];
在你的蓝图(例如 /site/blueprints/site.yml)中
vercel:
label: Vercel
type: vercel
你可以选择性地添加以下内容
button: true // set to "false" to hide button, e.g. when using automatic hooks
// to change the wording of the button you can use these options
deploy: "Publish website"
loading: "Loading.."
complete: "Finished"
error: "Error"
help: "Click to publish changes to the website"
width: 1/3
替代方案
对于 Netlify 或任何其他部署触发器,请查看:Kirby-Webhooks
许可证
MIT