@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

/@netlify/rules-proxy/

    Package Sidebar

    Install

    npm i @netlify/rules-proxy

    Weekly Downloads

    98

    Version

    0.1.4

    License

    ISC

    Unpacked Size

    126 kB

    Total Files

    6

    Last publish

    Collaborators

    • seanroberts
    • biilmann
    • eduardoboucas
    • netlify-bot
    • akardet
    • sarahetter
    • mikewen
    • kathmbeck
    • hrishikeshk
    • vitaliyr
    • denar90
    • smnh
    • berdav
    • youvalv
    • serhalp-netlify
    • rmulligan-netlify