Skip to content

Commit

Permalink
[#1528] Restore setupProxy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Jun 26, 2024
1 parent 020a840 commit c341d0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/setupProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ module.exports = function (app) {
app.use(
["/api/**", "/static-files/**"],
createProxyMiddleware({
target: "http://127.0.0.1:8000",
target: "http://localhost:8000",
changeOrigin: true,
})
);
app.use(
["/config.js"],
createProxyMiddleware({
target: "http://127.0.0.1:8000",
target: "http://localhost:8000",
changeOrigin: true,
secure: false,
pathRewrite: {
Expand All @@ -22,7 +22,7 @@ module.exports = function (app) {
app.use(
["/app"],
createProxyMiddleware({
target: "http://127.0.0.1:3000",
target: "http://localhost:3000",
changeOrigin: true,
pathRewrite: {
"^/app": "/apk/rtmis.apk",
Expand All @@ -32,7 +32,7 @@ module.exports = function (app) {
app.use(
["/master-data"],
createProxyMiddleware({
target: "http://127.0.0.1:3000",
target: "http://localhost:3000",
changeOrigin: true,
pathRewrite: {
"^/master-data": "/master_data/kenya-administration.csv",
Expand Down

0 comments on commit c341d0e

Please sign in to comment.