
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
strapi-plugin-multi-site-vercel-deploy
Advanced tools
Strapi v4 plugin to trigger and monitor deployment of multiple applications on Vercel
Strapi v4 plugin to trigger and monitor a deployment on Vercel.
Home Page:
Run the following command in your Strapi project to install vercel-deploy:
yarn add strapi-plugin-multi-site-vercel-deploy
# or
npm i -S strapi-plugin-multi-site-vercel-deploy
Open config/plugins.js
file and add the vercel-deploy entry:
module.exports = ({ env }) => ({
"multi-site-vercel-deploy": {
enabled: true,
},
});
You can now run Strapi:
yarn develop
You should see the Vercel Deploy menu in the left panel.
N.B. You may need to run yarn build
in order to see the new menu entries.
Then you can proceed with the plugin configuration.
Example:
module.exports = ({ env }) => ({
"vercel-deploy": {
enabled: true,
config: {
sites: [
{
deployHook:
"https://api.vercel.com/v1/integrations/deploy/prj_<deploy-hook>",
apiToken: "<vercel-api-token>",
appFilter: "your-app-name-on-vercel",
teamFilter: "your-team-id-on-vercel",
displayName: "app-name-to-be-displayed-in-dropdown",
roles: ["strapi-super-admin", "strapi-editor", "strapi-author"],
},
],
},
},
});
The plugin is reading the following configuration variables to work:
deployHook
: Url of the git deploy hook exposed in Vercel.
apiToken
: API token of your Vercel account used to fetch the list of deployments
appFilter
: Name of your Vercel App used to filter the list of deployments
teamFilter
: Id of your Vercel Team used to filter the list of deployments
roles
: List of user roles that can use the plugin
You shouldn't disclose the api token and the deploy hook url for security reasons. Therefore, you shouldn't add these values to versioning in a public git repository. A suggested solution is to use environment variables. Example:
module.exports = ({ env }) => ({
"vercel-deploy": {
enabled: true,
config: {
sites: [
{
deployHook: process.env.VERCEL_DEPLOY_PLUGIN_HOOK,
apiToken: process.env.VERCEL_DEPLOY_PLUGIN_API_TOKEN,
appFilter: process.env.VERCEL_DEPLOY_PLUGIN_APP_FILTER,
teamFilter: process.env.VERCEL_DEPLOY_PLUGIN_TEAM_FILTER,
displayName: process.env.VERCEL_DEPLOY_PLUGIN_DISPLAY_NAME,
roles: ["strapi-super-admin"],
},
],
},
},
});
For local development, you can add the config properties in your .env
file:
VERCEL_DEPLOY_PLUGIN_HOOK="https://api.vercel.com/v1/integrations/deploy/prj_<deploy-hook>"
VERCEL_DEPLOY_PLUGIN_API_TOKEN="<vercel-api-token>"
VERCEL_DEPLOY_PLUGIN_APP_FILTER="your-app-name-on-vercel"
Thanks to gianlucaparadise for making strapi-plugin-vercel-deploy which this was based on.
FAQs
Strapi v4 plugin to trigger and monitor deployment of multiple applications on Vercel
We found that strapi-plugin-multi-site-vercel-deploy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.