import { __awaiter, __generator } from "tslib";
export function getConfig() {
    return __awaiter(this, void 0, void 0, function () {
        return __generator(this, function (_a) {
            switch (_a.label) {
                case 0:
                    if (!(process.env.MOCK_ENV === 'true')) return [3 /*break*/, 2];
                    return [4 /*yield*/, import('../mock/config.json')];
                case 1: return [2 /*return*/, (_a.sent()).default];
                case 2: return [4 /*yield*/, window.fetch("/config.json")];
                case 3: return [4 /*yield*/, (_a.sent()).json()];
                case 4: return [2 /*return*/, _a.sent()];
            }
        });
    });
}
//# sourceMappingURL=config.js.map