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

react-java-mysql: use create-react-app for frontend

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
Jérémie Drouet 2020-03-23 11:18:04 +01:00
parent bf31ad4ece
commit 70be09e941
56 changed files with 15557 additions and 1126 deletions

View file

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