We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8a9fab commit 31c00e5Copy full SHA for 31c00e5
server.js
@@ -1,4 +1,4 @@
1
-var TARGET = 'https://github.com';
+//var TARGET = 'https://github.com';
2
var express = require('express');
3
var app = express();
4
var http = require('http');
@@ -7,13 +7,13 @@ var proxy = httpProxy.createProxyServer({});
7
8
app.use(express.static('./dist'));
9
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
-});
+// app.all('/*', function(req, res, next) {
+// console.log(req.url);
+// return proxy.web(req, res, {
+// target: TARGET
+// });
+// // next();
17
18
app.get('/', function(req, res) {
19
res.send('Hello Vue');
0 commit comments