mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
e99f73622b
This PR updates the with-web-worker example to use the App Router. Here are the changes that have been made: - Renamed the `pages` folder to the `app` folder. - Updated the routing for `/` files to align with the App Router. - Added the layout.tsx file as part of the App Router. - Updated the package.json file. The following actions were performed as part of this PR: - Ran `pnpm prettier-check` with no issues found. - Executed the `pnpm check-examples` script. --------- Co-authored-by: samcx <sam@vercel.com>
17 lines
258 B
TypeScript
17 lines
258 B
TypeScript
export const metadata = {
|
|
title: "Next.js",
|
|
description: "Generated by Next.js",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<body>{children}</body>
|
|
</html>
|
|
);
|
|
}
|