Compare commits
No commits in common. "884693ddfd3b293b15ce27ebd76e30e598a25aa9" and "dde25d6d9d80426f12621da5a8dc751d891e4a35" have entirely different histories.
884693ddfd
...
dde25d6d9d
@ -1,9 +1,6 @@
|
||||
name: Update Memento Dev on VPS
|
||||
run-name: ${{ gitea.actor }} is deploying the application on the VPS 🚀
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
||||
@ -23,8 +23,5 @@ export default {
|
||||
class: "flex min-h-full bg-white dark:bg-slate-900",
|
||||
},
|
||||
|
||||
prerender: true,
|
||||
prefetchStaticAssets: "hover",
|
||||
|
||||
extends: vikeReact,
|
||||
} satisfies Config;
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
import { docsService } from "@/services/DocsService";
|
||||
|
||||
export async function onBeforePrerenderStart() {
|
||||
const allDocumentations = await docsService.getUrls("certifications");
|
||||
return allDocumentations;
|
||||
}
|
||||
@ -1,6 +0,0 @@
|
||||
import { docsService } from "@/services/DocsService";
|
||||
|
||||
export async function onBeforePrerenderStart() {
|
||||
const allDocumentations = await docsService.getUrls("docs");
|
||||
return allDocumentations;
|
||||
}
|
||||
@ -164,17 +164,6 @@ class DocsService {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public async getUrls(namespace: "docs" | "certifications") {
|
||||
try {
|
||||
await this.fetchDocs();
|
||||
const docs = Array.from(this.cache.keys()).filter((key) => key.startsWith(`/${namespace}`));
|
||||
return docs;
|
||||
} catch (error) {
|
||||
console.error("Error fetching URLs:", error);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export const docsService = DocsService.getInstance();
|
||||
|
||||
@ -12,3 +12,7 @@ services:
|
||||
volumes:
|
||||
- ./app:/app
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
memento-data:
|
||||
driver: bridge
|
||||
|
||||
Loading…
Reference in New Issue
Block a user