@netlify/rules-proxy

0.1.4 • Public • Published

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 to
  • jwtSecret secret for verifying JWT tokens if using role based rules
  • jwtRolePath path when looking up a role in the claims of a JWT

Readme

Keywords

none

Package Sidebar

Install

npm i @netlify/rules-proxy

Weekly Downloads

54

Version

0.1.4

License

ISC

Unpacked Size

126 kB

Total Files

6

Last publish

Collaborators

  • youvalv
  • berdav
  • vitaliyr
  • smnh
  • denar90
  • kathmbeck
  • rj-netlify
  • akardet
  • pieh
  • hrishikeshk
  • sarahetter
  • orinokai
  • ericap
  • seanroberts
  • skn0tt
  • mikewen
  • biilmann
  • marcus.netlify
  • jgantunes
  • eduardoboucas
  • netlify-bot
  • nasiba
  • ascorbic