mirror of https://github.com/fantasticit/think.git
fix: fix server url
This commit is contained in:
parent
daa53db358
commit
680303c078
|
@ -3,7 +3,7 @@ import { Toast } from '@douyinfe/semi-ui';
|
||||||
import Router from 'next/router';
|
import Router from 'next/router';
|
||||||
|
|
||||||
export const HttpClient = axios.create({
|
export const HttpClient = axios.create({
|
||||||
baseURL: 'http://192.168.31.124:5001/api' || process.env.SERVER_API_URL,
|
baseURL: process.env.SERVER_API_URL,
|
||||||
timeout: 60000,
|
timeout: 60000,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ export const CollaborationEditor = forwardRef((props: ICollaborationEditorProps,
|
||||||
|
|
||||||
const hocuspocusProvider = useMemo(() => {
|
const hocuspocusProvider = useMemo(() => {
|
||||||
return new HocuspocusProvider({
|
return new HocuspocusProvider({
|
||||||
url: 'ws://192.168.31.124:5003' || process.env.COLLABORATION_API_URL,
|
url: process.env.COLLABORATION_API_URL,
|
||||||
name: documentId,
|
name: documentId,
|
||||||
token: (user && user.token) || 'read-public',
|
token: (user && user.token) || 'read-public',
|
||||||
parameters: {
|
parameters: {
|
||||||
|
|
Loading…
Reference in New Issue