mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-18 18:51:05 +10:00
websocket updates
* sync page title on icon via websocket * sync on page tree too
This commit is contained in:
@ -2,8 +2,9 @@ import axios, { AxiosInstance } from "axios";
|
||||
import Cookies from "js-cookie";
|
||||
import Routes from "@/lib/routes";
|
||||
|
||||
const baseUrl = import.meta.env.DEV ? "http://localhost:3000" : "";
|
||||
const api: AxiosInstance = axios.create({
|
||||
baseURL: "/api",
|
||||
baseURL: baseUrl + "/api",
|
||||
});
|
||||
|
||||
api.interceptors.request.use(
|
||||
|
||||
Reference in New Issue
Block a user