Socket
Book a DemoInstallSign in
Socket

domain-proxy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domain-proxy

前后分离项目静态服务器,支持跨域代理

1.0.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

domain-proxy

前后分离工程静态服务器,支持跨域代理

工程根目录配置文件 proxy.config.js

module.exports = {
  port: 10000,
  workPath: './test',
  pathList: [
    { path: '/api/', target: 'http://192.168.5.145/mock/193/customer/api' },
    { path: '/test', target: 'https://www.toutiao.com' },
  ],
};

使用方式

# 安装
npm i domain-proxy

# package.json 中添加 script

  "scripts": {
    "dev:proxy": "domain-proxy",
  },

Keywords

proxy

FAQs

Package last updated on 28 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.