fix: fix server url

This commit is contained in:
fantasticit 2022-05-04 17:34:38 +08:00
parent daa53db358
commit 680303c078
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';
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,
});

View File

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