Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2251960

Browse files
committed
Upgrade http-proxy-middleware, specify version in package.json
1 parentcf834eb commit2251960

File tree

3 files changed

+40
-11
lines changed

3 files changed

+40
-11
lines changed

‎frontend/package-lock.json‎

Lines changed: 37 additions & 8 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎frontend/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"@sentry/browser":"^5.15.4",
1010
"ansi_up":"^4.0.4",
1111
"axios":"^0.21.1",
12-
"http-proxy-middleware":"latest",
12+
"http-proxy-middleware":"^1.0.6",
1313
"lodash":"^4.17.15",
1414
"node-sass":"^4.13.0",
1515
"react":"^16.11.0",

‎frontend/src/setupProxy.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
constproxy=require("http-proxy-middleware");
1+
const{createProxyMiddleware}=require("http-proxy-middleware");
22

33
constroutes=[
44
"/accounts",
@@ -12,6 +12,6 @@ const routes = [
1212

1313
module.exports=function(app){
1414
routes.forEach(function(route){
15-
app.use(proxy(route,{target:"http://localhost:8000/"}));
15+
app.use(createProxyMiddleware(route,{target:"http://localhost:8000/"}));
1616
});
1717
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp