Licence
ISC
Version
0.1.4
Deps
6
Size
123 kB
Vulns
3
Weekly
0
Netlify Rules Proxy
This is a node middleware that works with express servers, connetct servers, etc, and implementes the full Netlify edge rules engine for your local dev environment.
Usage
const rulesProxy = require("netlify-rules-proxy");
app.use(rulesProxy({ publicFolder: "./dist" }));
Full options:
publicFolderthis defines the public folder the_redirectsfile gets written tojwtSecretsecret for verifying JWT tokens if using role based rulesjwtRolePathpath when looking up a role in the claims of a JWT