Merge pull request #35 from fantasticit/feat/mobile

This commit is contained in:
fantasticit 2022-05-04 17:35:36 +08:00 committed by GitHub
commit 811477cb13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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,
}); });

View File

@ -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: {