setup-proxy 3.1.0
Install from the command line:
Learn more about npm packages
$ npm install @uplift-ltd/setup-proxy@3.1.0
Install via package.json:
"@uplift-ltd/setup-proxy": "3.1.0"
About this version
npm i --save @uplift-ltd/setup-proxy
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).
// 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;
Details
- setup-proxy
- uplift-ltd
- 3 months ago
- MIT
- 2 dependencies
Assets
- setup-proxy-3.1.0.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0