Skip to content

Commit e0d7ba4

Browse files
fix: move viewport metadata to separate export
- Remove viewport from metadata export in layout.tsx - Add separate viewport export following Next.js 14+ conventions - Fixes unsupported metadata viewport warning
1 parent e8be9e7 commit e0d7ba4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/app/layout.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
import "~/styles/globals.css";
22

3-
import { type Metadata } from "next";
3+
import { type Metadata, type Viewport } from "next";
44
import { Geist } from "next/font/google";
55

66
import { TRPCReactProvider } from "~/trpc/react";
77

88
export const metadata: Metadata = {
99
title: "PVE Scripts local",
1010
description: "Manage and execute Proxmox helper scripts locally with live output streaming",
11-
viewport: "width=device-width, initial-scale=1, maximum-scale=1",
1211
icons: [
1312
{ rel: "icon", url: "/favicon.png", type: "image/png" },
1413
{ rel: "icon", url: "/favicon.ico", sizes: "any" },
1514
{ rel: "apple-touch-icon", url: "/favicon.png" },
1615
],
1716
};
1817

18+
export const viewport: Viewport = {
19+
width: "device-width",
20+
initialScale: 1,
21+
maximumScale: 1,
22+
};
23+
1924
const geist = Geist({
2025
subsets: ["latin"],
2126
variable: "--font-jetbrains-mono",

0 commit comments

Comments
 (0)