Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
tanish35 committed Oct 10, 2024
1 parent 85dab14 commit f68a9e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 3 additions & 0 deletions frontend/src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App.jsx";
import axios from "axios";

axios.defaults.baseURL = import.meta.env.VITE_BACKEND_URL;

ReactDOM.createRoot(document.getElementById("root")).render(<App />);
9 changes: 0 additions & 9 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,4 @@ export default defineConfig({
plugins: [tailwindcss()],
},
},
server: {
proxy: {
"/api": {
target: process.env.VITE_BACKEND_URL,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""), // Optional: remove '/api' from the path
},
},
},
});

0 comments on commit f68a9e6

Please sign in to comment.