@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
830
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:
publicFolder
this defines the public folder the_redirects
file gets written tojwtSecret
secret for verifying JWT tokens if using role based rulesjwtRolePath
path when looking up a role in the claims of a JWT