From 071fe82685d4df57bc7503cc711ce3d8b22e1319 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 10 Oct 2024 14:12:21 -0400 Subject: [PATCH] ok Took 17 minutes --- .gitignore | 1 - Dockerfile | 1 - config.json.example => config.json | 2 +- src/app/layout.tsx | 8 ++++---- 4 files changed, 5 insertions(+), 7 deletions(-) rename config.json.example => config.json (96%) diff --git a/.gitignore b/.gitignore index a68f926..11c2973 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ node_modules .env*.local next-env.d.ts .sentryclirc -config.json sw.* workbox-* swe-worker-* diff --git a/Dockerfile b/Dockerfile index 447d75d..cf0dbcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,6 @@ COPY --from=builder --chown=nextjs:nextjs /usr/src/app/public ./public COPY --from=builder --chown=nextjs:nextjs /usr/src/app/next.config.mjs ./next.config.mjs COPY --from=builder --chown=nextjs:nextjs /usr/src/app/package.json ./package.json COPY --from=builder --chown=nextjs:nextjs /usr/src/app/docs ./docs -COPY --from=builder --chown=nextjs:nextjs /usr/src/app/config.json.example ./config.json ENV NODE_ENV production diff --git a/config.json.example b/config.json similarity index 96% rename from config.json.example rename to config.json index 8236974..683ad11 100644 --- a/config.json.example +++ b/config.json @@ -22,7 +22,7 @@ "viewport": { "themeColor": "#A855F7" }, - "contentSource": "{process}/docs", + "contentSource": "https://git.rainnny.club/PulseApp/docs-content.git", "contentEditUrl": "https://git.rainnny.club/PulseApp/docs-content/src/branch/master/{slug}{ext}", "socialLinks": [ { diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 950669c..32a21b0 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,4 @@ -import type { Metadata } from "next"; +import type { Metadata, Viewport } from "next"; import "./styles/globals.css"; import { ReactElement, ReactNode } from "react"; import { ThemeProvider } from "@/components/theme-provider"; @@ -7,13 +7,13 @@ import Sidebar from "@/components/sidebar/sidebar"; import Footer from "@/components/footer"; import { TooltipProvider } from "@/components/ui/tooltip"; import { getDocsContent } from "@/lib/mdx"; +import config from "@/config"; /** * The metadata for this app. */ -// export const metadata: Metadata = config.metadata; -export const metadata: Metadata = { title: "test", description: "testing" }; -// export const viewport: Viewport = config.viewport; +export const metadata: Metadata = config.metadata; +export const viewport: Viewport = config.viewport; export const dynamic = "force-dynamic";