chore: Upgrade Node and Nuxt (#6240)

This commit is contained in:
Michael Genson
2025-09-27 12:26:02 -05:00
committed by GitHub
parent 0e10ed8461
commit ecdf7de386
15 changed files with 3893 additions and 4257 deletions

View File

@@ -6,16 +6,15 @@ export default defineNuxtPlugin(() => {
const axiosInstance = axios.create({
// timeout removed to allow backend to handle timeouts
baseURL: "/", // api calls already pass with /api
headers: {
Authorization: "Bearer " + useCookie(tokenName).value,
},
withCredentials: true,
});
// Add request interceptor
axiosInstance.interceptors.request.use(
(config) => {
// You can add auth tokens or other headers here
const token = useCookie(tokenName).value;
if (token) {
config.headers.Authorization = `Bearer ${token}`;
}
return config;
},
(error) => {