1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00

react-express-mysql: use create-react-app template

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
Jérémie Drouet 2020-03-23 13:24:37 +01:00
parent bf31ad4ece
commit b58a42015d
53 changed files with 15541 additions and 1127 deletions

View file

@ -0,0 +1,11 @@
const { createProxyMiddleware } = require("http-proxy-middleware");
module.exports = function(app) {
app.use(
"/api",
createProxyMiddleware({
target: "http://backend",
pathRewrite: { "^/api": "" }
})
);
};