Skip to content

Commit 31c00e5

Browse files
committed
reset server.js
1 parent d8a9fab commit 31c00e5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

server.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var TARGET = 'https://github.com';
1+
//var TARGET = 'https://github.com';
22
var express = require('express');
33
var app = express();
44
var http = require('http');
@@ -7,13 +7,13 @@ var proxy = httpProxy.createProxyServer({});
77

88
app.use(express.static('./dist'));
99

10-
app.all('/*', function(req, res, next) {
11-
console.log(req.url);
12-
return proxy.web(req, res, {
13-
target: TARGET
14-
});
15-
// next();
16-
});
10+
// app.all('/*', function(req, res, next) {
11+
// console.log(req.url);
12+
// return proxy.web(req, res, {
13+
// target: TARGET
14+
// });
15+
// // next();
16+
// });
1717

1818
app.get('/', function(req, res) {
1919
res.send('Hello Vue');

0 commit comments

Comments
 (0)