This commit is contained in:
Rizky 2024-02-26 12:06:26 +07:00
parent 6831e13aae
commit dac64ba078
3 changed files with 16 additions and 11 deletions

View File

@ -159,6 +159,7 @@ export const Root = () => {
if (load_urls.length > 0) {
const pages = await loadUrls(load_urls);
if (Array.isArray(pages)) {
for (const page of pages) {
const p = {
id: page.id,
@ -171,6 +172,7 @@ export const Root = () => {
base.page.cache[p.id] = p;
}
}
}
}}
/>
</div>

BIN
dockerzip

Binary file not shown.

View File

@ -8,7 +8,10 @@ if (!g.dockerPrepared) {
g.dockerPrepared = true;
const dir = {
path(...allpath: any[]) {
return path.join(process.cwd(), ...allpath);
return path.join(
process.cwd(),
...allpath.map((e) => (Array.isArray(e) ? e.join("") : e))
);
},
read(dirPath: string, baseDir?: string[]): Record<string, string> {
const result: Record<string, string> = {};