Gathering detailed insights and metrics for @nuxtjs/proxy
Gathering detailed insights and metrics for @nuxtjs/proxy
Gathering detailed insights and metrics for @nuxtjs/proxy
Gathering detailed insights and metrics for @nuxtjs/proxy
The one-liner node.js http-proxy middleware solution for Nuxt 2 using http-proxy-middleware
npm install @nuxtjs/proxy
Typescript
Module System
Node Version
NPM Version
97.4
Supply Chain
99.4
Quality
81.2
Maintenance
50
Vulnerability
100
License
TypeScript (77.01%)
JavaScript (20.35%)
Vue (2.64%)
Total Downloads
68,047,742
Last Day
6,857
Last Week
147,809
Last Month
613,519
Last Year
8,089,035
MIT License
409 Stars
76 Commits
26 Forks
6 Watchers
11 Branches
33 Contributors
Updated on May 16, 2025
Minified
Minified + Gzipped
Latest Version
2.1.0
Package Id
@nuxtjs/proxy@2.1.0
Size
4.08 kB
NPM Version
6.14.8
Node Version
14.15.0
Published on
Dec 14, 2020
Cumulative downloads
Total Downloads
Last Day
-18.9%
6,857
Compared to previous day
Last Week
-4.4%
147,809
Compared to previous week
Last Month
-5.6%
613,519
Compared to previous month
Last Year
-28.4%
8,089,035
Compared to previous year
Proxy support for nuxt server
✓ Path rewrites
✓ Host based router (useful for staging/test)
✓ Logs / Proxy Events
✓ WebSockets
✓ Auth / Cookie
✓ ...See http-proxy-middleware docs
⚠ Does not work in generated/static mode!
@nuxtjs/proxy
dependency to your project1yarn add @nuxtjs/proxy # or npm install @nuxtjs/proxy
@nuxtjs/proxy
to the modules
section of nuxt.config.js
1{ 2 modules: [ 3 // Simple usage 4 '@nuxtjs/proxy', 5 6 // With options 7 ['@nuxtjs/proxy', { pathRewrite: { '^/api' : '/api/v1' } }] 8 ] 9}
proxy
section of nuxt.config.js
(See proxy section below)changeOrigin
and ws
options are enabled by default.[optional] You can provide default options to all proxy targets by passing options to module options.
proxy
You can provide proxy config using either object or array.
You can use shorthand syntax to configure proxy:
1{ 2 proxy: [ 3 // Proxies /foo to http://example.com/foo 4 'http://example.com/foo', 5 6 // Proxies /api/books/*/**.json to http://example.com:8000 7 'http://example.com:8000/api/books/*/**.json', 8 9 // You can also pass more options 10 [ 'http://example.com/foo', { ws: false } ] 11 ] 12}
Keys are context
1{ 2 proxy: { 3 // Simple proxy 4 '/api': 'http://example.com', 5 6 // With options 7 '/api2': { target: 'http://example.com', ws: false }, 8 9 // Proxy to backend unix socket 10 '/api3': { 11 changeOrigin: false, 12 target: { socketPath: '/var/run/http-sockets/backend.sock' } 13 } 14 } 15}
yarn install
or npm install
npm run dev
Copyright (c) Nuxt Community
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 4/22 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
97 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More