The Vercel Purger plugin allows the Blitz plugin for Craft CMS to intelligently purge pages cached on Vercel.
This plugin requires Craft CMS 5.0.0 or later, and PHP 8.2 or later.
You can install this plugin from the Plugin Store or with Composer.
Go to the Plugin Store in your project’s Control Panel and search for “Blitz Vercel Purger”. Then press “Install”.
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-vercelAfter 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',
'concurrency' => 5
],More information about the Vercel Build Output API can be found here.
The MIT License (MIT). Please see License File for more information.
