updated env files to allow configuring api base url

This commit is contained in:
Marvin Zhang
2021-11-05 21:51:40 +08:00
parent 3a1f08dfca
commit 850b5a94c4
7 changed files with 258 additions and 64 deletions

View File

@@ -1,4 +1,8 @@
import 'crawlab-ui/dist/crawlab-ui.css';
import {createApp} from 'crawlab-ui';
createApp();
(async function () {
// @ts-ignore
window.VUE_APP_API_BASE_URL = process.env.VUE_APP_API_BASE_URL;
await createApp();
})();