mirror of https://github.com/fantasticit/think.git
Merge pull request #35 from fantasticit/feat/mobile
This commit is contained in:
commit
811477cb13
|
@ -3,7 +3,7 @@ import { Toast } from '@douyinfe/semi-ui';
|
|||
import Router from 'next/router';
|
||||
|
||||
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,
|
||||
});
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ export const CollaborationEditor = forwardRef((props: ICollaborationEditorProps,
|
|||
|
||||
const hocuspocusProvider = useMemo(() => {
|
||||
return new HocuspocusProvider({
|
||||
url: 'ws://192.168.31.124:5003' || process.env.COLLABORATION_API_URL,
|
||||
url: process.env.COLLABORATION_API_URL,
|
||||
name: documentId,
|
||||
token: (user && user.token) || 'read-public',
|
||||
parameters: {
|
||||
|
|
Loading…
Reference in New Issue