Compare commits
No commits in common. "e9ecd33362ae110448da99df8e4fd7b6658fa2f7" and "884693ddfd3b293b15ce27ebd76e30e598a25aa9" have entirely different histories.
e9ecd33362
...
884693ddfd
@ -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,
|
||||||
|
|||||||
6
app/pages/certifications/+onBeforePrerenderStart.ts
Normal file
6
app/pages/certifications/+onBeforePrerenderStart.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { docsService } from "@/services/DocsService";
|
||||||
|
|
||||||
|
export async function onBeforePrerenderStart() {
|
||||||
|
const allDocumentations = await docsService.getUrls("certifications");
|
||||||
|
return allDocumentations;
|
||||||
|
}
|
||||||
6
app/pages/docs/+onBeforePrerenderStart.ts
Normal file
6
app/pages/docs/+onBeforePrerenderStart.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { docsService } from "@/services/DocsService";
|
||||||
|
|
||||||
|
export async function onBeforePrerenderStart() {
|
||||||
|
const allDocumentations = await docsService.getUrls("docs");
|
||||||
|
return allDocumentations;
|
||||||
|
}
|
||||||
@ -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
|
|
||||||
@ -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" ]
|
||||||
@ -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" ]
|
|
||||||
Loading…
Reference in New Issue
Block a user