3.1.0 • Published 8 months ago

@uplift-ltd/setup-proxy v3.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@uplift-ltd/setup-proxy

Installation

npm i --save @uplift-ltd/setup-proxy

API

Create a file in src/setupProxy.js that invokes this function with a callback that returns a config (or omit the callback to use default values).

Default Values

// next.config.ts
export const GRAPHQL_ORIGIN = process.env.GRAPHQL_ORIGIN || "http://127.0.0.1:8000";

const nextConfig: NextConfig = {
  async rewrites() {
    return setupRewrites({
      target: GRAPHQL_ORIGIN,
    });
  },
};

export default nextConfig;
3.1.0

8 months ago

3.0.0

2 years ago

1.4.0

2 years ago

3.0.0-alpha.1

2 years ago

3.0.0-alpha.0

2 years ago

2.0.0

2 years ago

2.0.0-alpha.0

2 years ago

2.0.0-alpha.1

2 years ago

2.0.0-alpha.2

2 years ago

1.3.11

2 years ago

1.3.10

2 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.8-alpha.3

3 years ago

1.3.8-alpha.1

3 years ago