diff --git a/Dockerfile b/Dockerfile index cf0dbcc..bb32e72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ FROM base AS builder WORKDIR /usr/src/app COPY --from=depends /usr/src/app/node_modules ./node_modules COPY . . -ENV NEXT_TELEMETRY_DISABLED 1 +ENV NEXT_TELEMETRY_DISABLED=1 RUN bun run build @@ -34,13 +34,13 @@ COPY --from=builder --chown=nextjs:nextjs /usr/src/app/next.config.mjs ./next.co COPY --from=builder --chown=nextjs:nextjs /usr/src/app/package.json ./package.json COPY --from=builder --chown=nextjs:nextjs /usr/src/app/docs ./docs -ENV NODE_ENV production +ENV NODE_ENV=production # Exposting on port 80 so we can # access via a reverse proxy for Dokku -ENV HOSTNAME "0.0.0.0" +ENV HOSTNAME="0.0.0.0" EXPOSE 80 -ENV PORT 80 +ENV PORT=80 USER nextjs -CMD node server.js \ No newline at end of file +CMD ["node", "server.js"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 1b74648..d3f8301 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,4 +6,5 @@ services: ports: - "8080:80" volumes: + - ./config.json:/usr/src/app/config.json - ./docs:/usr/src/app/docs \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 32a21b0..e6a128e 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -40,9 +40,9 @@ const RootLayout = async ({ enableSystem > -
+
-
+
diff --git a/src/components/sidebar/sidebar.tsx b/src/components/sidebar/sidebar.tsx index 11525d0..513646c 100644 --- a/src/components/sidebar/sidebar.tsx +++ b/src/components/sidebar/sidebar.tsx @@ -3,8 +3,6 @@ import SidebarLinks from "@/components/sidebar/sidebar-links"; import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet"; import QuickSearchDialog from "@/components/navbar/search-dialog"; import { AlignRightIcon } from "lucide-react"; -import { Separator } from "@/components/ui/separator"; -import ThemeSwitcher from "@/components/theme-switcher"; const Sidebar = ({ pages }: { pages: DocsContentMetadata[] }): ReactElement => ( <> @@ -21,7 +19,7 @@ const Sidebar = ({ pages }: { pages: DocsContentMetadata[] }): ReactElement => (
{/* Desktop */} -
+
@@ -42,10 +40,10 @@ const SidebarContent = ({
{/* Theme Switcher */} -
- - -
+ {/*
*/} + {/* */} + {/* */} + {/*
*/}
);