Commit 82b0ac3c authored by wq's avatar wq

解决 addGame 问题

parent 440cfd5a
var proxy = require('http-proxy-middleware');
var fomoProxy = proxy(['/**', '!**.js', '!**.css'], {
target: 'http://localhost:3000',
forward: 'http://localhost:3000/'
});
module.exports = {
server: {
baseDir: [
"./src",
"./build/contracts"
]
}/*,
middleware: [
fomoProxy
]*/
};
{
"server": {
"baseDir": [
"./src",
"./build/contracts"
]
},
"middleware": {
"0": null
}
}
{
"name": "genePet",
"name": "FoMo3D",
"version": "1.0.0",
"description": "",
"main": "truffle.js",
......@@ -14,6 +14,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"http-proxy-middleware": "^0.17.4",
"lite-server": "^2.3.0"
},
"dependencies": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment