diff --git a/next.config.js b/next.config.js index d9c7256..acbc589 100644 --- a/next.config.js +++ b/next.config.js @@ -18,6 +18,30 @@ const config = { }, ], }, + // Allow cross-origin requests from local network ranges + allowedDevOrigins: [ + 'http://localhost:3000', + 'http://127.0.0.1:3000', + 'http://[::1]:3000', + 'http://10.*', + 'http://172.16.*', + 'http://172.17.*', + 'http://172.18.*', + 'http://172.19.*', + 'http://172.20.*', + 'http://172.21.*', + 'http://172.22.*', + 'http://172.23.*', + 'http://172.24.*', + 'http://172.25.*', + 'http://172.26.*', + 'http://172.27.*', + 'http://172.28.*', + 'http://172.29.*', + 'http://172.30.*', + 'http://172.31.*', + 'http://192.168.*', + ], }; export default config; diff --git a/src/app/_components/CategorySidebar.tsx b/src/app/_components/CategorySidebar.tsx index 84e2b33..6b0307a 100644 --- a/src/app/_components/CategorySidebar.tsx +++ b/src/app/_components/CategorySidebar.tsx @@ -40,7 +40,7 @@ const CategoryIcon = ({ iconName, className = "w-5 h-5" }: { iconName: string; c ), key: ( - + ), archive: ( diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 510696a..8b73235 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,6 +1,6 @@ import "~/styles/globals.css"; -import { type Metadata } from "next"; +import { type Metadata, type Viewport } from "next"; import { Geist } from "next/font/google"; import { TRPCReactProvider } from "~/trpc/react"; @@ -8,7 +8,6 @@ import { TRPCReactProvider } from "~/trpc/react"; export const metadata: Metadata = { title: "PVE Scripts local", description: "Manage and execute Proxmox helper scripts locally with live output streaming", - viewport: "width=device-width, initial-scale=1, maximum-scale=1", icons: [ { rel: "icon", url: "/favicon.png", type: "image/png" }, { rel: "icon", url: "/favicon.ico", sizes: "any" }, @@ -16,6 +15,12 @@ export const metadata: Metadata = { ], }; +export const viewport: Viewport = { + width: "device-width", + initialScale: 1, + maximumScale: 1, +}; + const geist = Geist({ subsets: ["latin"], variable: "--font-jetbrains-mono",