@netlify/rules-proxy
v0.1.4
Published
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.
Downloads
3,071
Maintainers
Keywords
Readme
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
