From 7bad3877ba0fb0be3d1220986a4dcdb160e7aeb6 Mon Sep 17 00:00:00 2001 From: TDLaouer Date: Wed, 9 Jul 2025 13:17:35 +0200 Subject: [PATCH] set api uri --- src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index e0a3a93..8edd524 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,8 @@ import 'vue3-toastify/dist/index.css' import axios from 'axios' import { createPinia } from 'pinia' -axios.defaults.baseURL = 'http://localhost:3001' +const API_URI: string = process.env.VUE_APP_API_URI || 'http://localhost:3001' +axios.defaults.baseURL = API_URI const pinia = createPinia()