prerender-cli-http-proxy
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

prerender-cli-http-proxy

A prerender-cli plugin help you to proxy your request.

Usage

// prerender.config.js
const PreRenderCliHttpProxyPlugin = require('prerender-cli-http-proxy');

module.exports = {
  plugins: [
    new PreRenderCliHttpProxyPlugin([
      {
        path: '/api',
        options: {
          target: 'https://www.api.server.com',
        },
      },
      {
        path: '/api2',
        options: {
          target: 'https://www.api2.server.com',
        },
      },
    ]),
  ],
};

Readme

Keywords

none

Package Sidebar

Install

npm i prerender-cli-http-proxy

Weekly Downloads

1

Version

1.2.0

License

ISC

Unpacked Size

3.86 kB

Total Files

4

Last publish

Collaborators

  • shisme