Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

39 lines
1.3 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 9fa62e21c1c207df.60ade64c2b.js
* Module id: 319606
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(325528);
e.i(243531);
var r = e.i(552119);
e.i(694653),
(0, r.Logger)("@shakkerai/services"),
e.s([
"getUrl",
0,
(e) =>
e.startsWith("http")
? e
: ((e) => {
if (
/^\/api\/www\/login/.test(e) ||
/^\/api\/www\/user\//.test(e) ||
/^\/api\/www\/weixin\/login/.test(e) ||
/^\/api\/www\/weixin\/platform/.test(e)
)
return t.config.passportApi + e;
if (/^\/api\/app/.test(e)) return t.config.appApi + e;
if (/^\/api\/www/.test(e)) return t.config.apiHost + e;
if (/^\/api\/canva/.test(e)) return t.config.canvasHost + e;
if (/^\/api\/app/.test(e)) return t.config.apiClientHost + e;
else if (/^\/gateway/.test(e)) return t.config.gatewayHost + e;
else return t.config.apiHost + e;
})(e),
]);
};
export default moduleFactory;