Compare commits

..

No commits in common. "e9ecd33362ae110448da99df8e4fd7b6658fa2f7" and "884693ddfd3b293b15ce27ebd76e30e598a25aa9" have entirely different histories.

6 changed files with 15 additions and 29 deletions

View File

@ -22,6 +22,8 @@ export default {
bodyAttributes: { bodyAttributes: {
class: "flex min-h-full bg-white dark:bg-slate-900", class: "flex min-h-full bg-white dark:bg-slate-900",
}, },
prerender: true,
prefetchStaticAssets: "hover", prefetchStaticAssets: "hover",
extends: vikeReact, extends: vikeReact,

View File

@ -0,0 +1,6 @@
import { docsService } from "@/services/DocsService";
export async function onBeforePrerenderStart() {
const allDocumentations = await docsService.getUrls("certifications");
return allDocumentations;
}

View File

@ -0,0 +1,6 @@
import { docsService } from "@/services/DocsService";
export async function onBeforePrerenderStart() {
const allDocumentations = await docsService.getUrls("docs");
return allDocumentations;
}

View File

@ -1,11 +0,0 @@
services:
memento-prod:
container_name: memento-prod
build:
context: .
dockerfile: production.Dockerfile
env_file:
- .env
ports:
- "${PORT}:${PORT}"
restart: unless-stopped

View File

@ -12,4 +12,4 @@ RUN chmod -R 775 /app
EXPOSE 3000 EXPOSE 3000
ENTRYPOINT [ "pnpm" ] ENTRYPOINT [ "pnpm" ]
CMD [ "pnpm", "dev" ] CMD [ "sh", "-c", "if [ \"$NODE_ENV\" = 'production' ]; then pnpm preview; else pnpm dev; fi" ]

View File

@ -1,17 +0,0 @@
FROM node:22-alpine
WORKDIR /app
RUN npm install -g pnpm
COPY ./app/package.json ./app/pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --production
COPY ./app /app
RUN pnpm build
EXPOSE 3000
CMD [ "pnpm", "preview" ]