esign / craft-blitz-vercel
Vercel cache purger for Blitz plugin for Craft CMS.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:craft-plugin
Requires
- php: >=8.2
- craftcms/cms: ^5.0.0
- putyourlightson/craft-blitz: ^5.0
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
- phpstan/phpstan: ^1.12
This package is not auto-updated.
Last update: 2025-02-28 19:51:52 UTC
README
The Vercel Purger plugin allows the Blitz plugin for Craft CMS to intelligently purge pages cached on Vercel.
Requirements
This plugin requires Craft CMS 5.0.0 or later, and PHP 8.2 or later.
Installation
You can install this plugin from the Plugin Store or with Composer.
From the Plugin Store
Go to the Plugin Store in your project’s Control Panel and search for “Blitz Vercel Purger”. Then press “Install”.
With Composer
Open your terminal and run the following commands:
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require esign/craft-blitz-vercel # tell Craft to install the plugin ./craft plugin/install blitz-vercel
Usage
After installing the plugin, you can use the plugin in the control panel under Settings > Blitz > Cache Purger.
// The purger type to use. 'cachePurgerType' => 'esign\craftblitzvercel\VercelPurger', // The purger settings. 'cachePurgerSettings' => [ 'bypassToken' => 'YOUR_BYPASS_TOKEN', ],
More information about the Vercel Build Output API can be found here.
License
The MIT License (MIT). Please see License File for more information.