Skip to content

Commit 95ead89

Browse files
committed
wip #92
1 parent 04719a7 commit 95ead89

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_CB_ENDPOINT=http://localhost:8090

.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_CB_ENDPOINT=''

src/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ import CoderBot from './common/coderbot';
4343
// https://github.com/axios/axios/issues/350#issuecomment-227270046
4444

4545
const $axios = axios.create();
46-
const CB_ENDPOINT = import.meta.env.DEV == true ? 'http://localhost:8090' : 'http://localhost:8090';
47-
const $coderbot = new CoderBot(CB_ENDPOINT, $axios, store);
46+
const $coderbot = new CoderBot(import.meta.env.VITE_CB_ENDPOINT, $axios, store);
4847

4948
// this will block until CoderBot returns several configuration data.
5049
$coderbot.load().then(() => {

0 commit comments

Comments
 (0)