Package json
This commit is contained in:
@@ -95,4 +95,10 @@ app.post("/payforalert", function(request, response) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// Anything that doesn't match the above, send back index.html
|
||||||
|
app.get('*', (req, res) => {
|
||||||
|
res.sendFile(path.join(__dirname + '/../frontend-react/build/index.html'))
|
||||||
|
})
|
||||||
|
|
||||||
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
|
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
|
||||||
|
|||||||
12
package.json
12
package.json
@@ -16,12 +16,10 @@
|
|||||||
"node": "11.10.x"
|
"node": "11.10.x"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"2checkout-node": "0.0.1",
|
},
|
||||||
"@sendgrid/mail": "^6.3.1",
|
"scripts": {
|
||||||
"cheerio": "^1.0.0-rc.2",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"express": "^4.16.4",
|
"start": "node ./backend/index.js",
|
||||||
"mysql2": "^1.6.4",
|
"heroku-postbuild": "cd frontend-react && npm install && npm run build && cd .. && cd backend && npm install"
|
||||||
"node-fetch": "^2.3.0",
|
|
||||||
"sequelize": "^4.42.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user