mirror of
https://github.com/docmost/docmost.git
synced 2025-11-23 21:21:47 +10:00
Server SPA from server
* add /api prefix
This commit is contained in:
@ -3,10 +3,10 @@
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "vite --port 3000",
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"preview": "vite preview --port 3000"
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hocuspocus/provider": "^2.8.1",
|
||||
|
||||
@ -17,11 +17,11 @@ export function UserButton() {
|
||||
|
||||
<div style={{ flex: 1 }}>
|
||||
<Text size="sm" fw={500}>
|
||||
{currentUser.user.name}
|
||||
{currentUser?.user.name}
|
||||
</Text>
|
||||
|
||||
<Text c="dimmed" size="xs">
|
||||
{currentUser.user.email}
|
||||
{currentUser?.user.email}
|
||||
</Text>
|
||||
</div>
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ import Cookies from "js-cookie";
|
||||
import Routes from "@/lib/routes";
|
||||
|
||||
const api: AxiosInstance = axios.create({
|
||||
baseURL: import.meta.env.VITE_BACKEND_API_URL
|
||||
baseURL: import.meta.env.VITE_BACKEND_API_URL + '/api'
|
||||
});
|
||||
|
||||
api.interceptors.request.use(config => {
|
||||
|
||||
Reference in New Issue
Block a user