🚧 New version popup

This commit is contained in:
Fred KISSIE
2025-11-05 06:55:08 +01:00
parent a26a441d56
commit 2f1abfbef8
7 changed files with 247 additions and 17 deletions

View File

@@ -51,6 +51,15 @@ export const internal = axios.create({
}
});
export const remote = axios.create({
baseURL: `${process.env.NEXT_PUBLIC_FOSSORIAL_REMOTE_API_URL}/api/v1`,
timeout: 10000,
headers: {
"Content-Type": "application/json",
"X-CSRF-Token": "x-csrf-protection"
}
});
export const priv = axios.create({
baseURL: `http://localhost:${process.env.SERVER_INTERNAL_PORT}/api/v1`,
timeout: 10000,
@@ -60,4 +69,3 @@ export const priv = axios.create({
});
export * from "./formatAxiosError";