Skip to content

Commit

Permalink
hotfix : backend url (temporary change)
Browse files Browse the repository at this point in the history
  • Loading branch information
Safouen Turki committed Oct 1, 2024
1 parent 0dd0197 commit 7a64ea6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ const basenameProd = "/";

export default defineConfig(({ command }) => {
dotenv.config();
const { VITE_BACKEND_PORT, VITE_BACKEND_NAME, VITE_APP_BACKEND_URL } =
const { VITE_BACKEND_PORT, VITE_BACKEND_NAME } =
process.env;
const VITE_BACKEND_URL =
VITE_APP_BACKEND_URL ?? `http://${VITE_BACKEND_NAME}:${VITE_BACKEND_PORT}`;
const VITE_BACKEND_URL = `http://${VITE_BACKEND_NAME}:${VITE_BACKEND_PORT}`;
return {
plugins: [react()],
resolve: {
Expand Down

0 comments on commit 7a64ea6

Please sign in to comment.