mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 23:02:02 +03:00
chore: Manually fix lint issues in ui.
This commit is contained in:
+10
-4
@@ -6,13 +6,19 @@ const here = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
function normalizeBase(input: string): string {
|
||||
const trimmed = input.trim();
|
||||
if (!trimmed) {return "/";}
|
||||
if (trimmed === "./") {return "./";}
|
||||
if (trimmed.endsWith("/")) {return trimmed;}
|
||||
if (!trimmed) {
|
||||
return "/";
|
||||
}
|
||||
if (trimmed === "./") {
|
||||
return "./";
|
||||
}
|
||||
if (trimmed.endsWith("/")) {
|
||||
return trimmed;
|
||||
}
|
||||
return `${trimmed}/`;
|
||||
}
|
||||
|
||||
export default defineConfig(({ command }) => {
|
||||
export default defineConfig(() => {
|
||||
const envBase = process.env.OPENCLAW_CONTROL_UI_BASE_PATH?.trim();
|
||||
const base = envBase ? normalizeBase(envBase) : "./";
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user