@cloakprotect/vercel-plugin
v0.1.1
Published
Vercel build plugin for Cloak. After every deploy, ensures your new build is protected before the first visitor.
Downloads
25
Readme
@cloakprotect/vercel-plugin
Vercel build plugin for Cloak. After every Vercel deploy, the plugin tells Cloak's API to process your new build so the first visitor sees protected content from the first byte.
Best-effort: never fails the build.
Install
npm install --save-dev @cloakprotect/vercel-pluginWire it into your build:
{
"buildCommand": "next build && node node_modules/@cloakprotect/vercel-plugin/src/index.js"
}Required env
| Name | Required | Default | Notes |
|---|---|---|---|
| CLOAK_API_KEY | yes | — | Your Cloak API key. |
| CLOAK_API_URL | no | https://api.cloakprotect.org | Override for staging. |
| CLOAK_DOMAIN | no | Vercel production URL | Force a specific domain. |
Set these in Project Settings → Environment Variables → Production.
License
UNLICENSED — for use only on sites authorized by Cloak. Visit cloakprotect.org.
