Skip to content

Commit 4557109

Browse files
committed
Next.js v15
1 parent 8f7a89b commit 4557109

File tree

4 files changed

+670
-188
lines changed

4 files changed

+670
-188
lines changed

app/layout.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import './globals.css'
2-
import type { Metadata } from 'next'
2+
import type { Metadata, Viewport } from 'next'
33
import type { PropsWithChildren } from 'react'
44
import GA from '../components/GA'
55

@@ -18,12 +18,14 @@ export default function RootLayout({
1818
);
1919
}
2020

21+
export const viewport: Viewport = {
22+
width: 'device-width',
23+
initialScale: 1
24+
}
25+
2126
export const metadata: Metadata = {
2227
metadataBase: new URL(process.env.NODE_ENV === 'production' ? 'https://koh.dev' : 'http://localhost:3000'),
2328
title: 'kohsweb',
24-
viewport: {
25-
width: 'device-width'
26-
},
2729
openGraph: {
2830
url: './',
2931
type: 'website',

next.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3-
output: 'export',
4-
appDir: true
3+
output: 'export'
54
};
65

76
module.exports = nextConfig

0 commit comments

Comments
 (0)