Skip to content

Commit

Permalink
Add env to set frontend url
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscariremma committed Jun 23, 2024
1 parent 51b66d1 commit 8d4c9af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ const setupGraphql = (app: express.Application, tools: Tools) => {

export const setupRoutes = (app: express.Application, tools: Tools) => {
setupGraphql(app, tools);
app.use("/", proxy("http://localhost:3001"));
const frontend_url = process.env.FRONTEND_URL || "http://localhost:3001";
app.use("/", proxy(frontend_url));
};

0 comments on commit 8d4c9af

Please sign in to comment.