Skip to content

Commit

Permalink
fix: test app server (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Mar 8, 2023
1 parent 744b32c commit 2c5e6a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugins/typed-messages/test/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import AV from 'leancloud-storage';
import { APP_ID, APP_KEY } from '../../../test/configs';
import { APP_ID, APP_KEY, SERVER } from '../../../test/configs';

import './file-message-and-subclasses';
import './location-message';

AV.init({
appId: APP_ID,
appKey: APP_KEY,
serverURLs: SERVER,
});
2 changes: 1 addition & 1 deletion test/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const APP_ID =
export const APP_KEY =
process.env.APP_KEY || 'xhiibo2eiyokjdu2y3kqcb7334rtw4x33zam98buxzkjuq5g';
const defaultServer = isCNApp(APP_ID)
? 'https://xhiibo2e.lc-cn-n1-shared.com'
? 'https://anruhhk6.lc-cn-n1-shared.com'
: undefined;
export const SERVER = process.env.SERVER ? process.env.SERVER : defaultServer;
export const EXISTING_ROOM_ID =
Expand Down

0 comments on commit 2c5e6a3

Please sign in to comment.