Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(example) update github-pages example #52168

Merged
merged 7 commits into from Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/github-pages/app/about/page.tsx
Expand Up @@ -3,7 +3,7 @@ import Link from 'next/link'
export default function About() {
return (
<>
<h1>About</h1>
<h1>About Page</h1>
<div>
Back to <Link href="/">Home</Link>
</div>
Expand Down
12 changes: 11 additions & 1 deletion examples/github-pages/app/layout.tsx
@@ -1,11 +1,21 @@
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
styfle marked this conversation as resolved.
Show resolved Hide resolved

const inter = Inter({ subsets: ['latin'] })

export const metadata: Metadata = {
title: 'Next.js on GitHub Pages',
description: 'A Next.js web application on GitHub Pages',
}

export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body>{children}</body>
<body className={inter.className}>{children}</body>
</html>
)
}
6 changes: 1 addition & 5 deletions examples/github-pages/next.config.js
@@ -1,8 +1,4 @@
// @ts-check

/**
* @type {import('next').NextConfig}
**/
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
basePath: '/gh-pages-test',
Expand Down