-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update next.js to 13.1.7-canary.25 (#3895)
- Loading branch information
Showing
10 changed files
with
134 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
crates/next-dev-tests/tests/integration/next/app/metadata/input/app/[slug]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type React from "react"; | ||
import Test from "../test"; | ||
|
||
export default function Page(): React.ReactElement { | ||
return ( | ||
<div> | ||
<Test /> | ||
</div> | ||
); | ||
} | ||
|
||
export async function generateMetadata({ params }) { | ||
return { | ||
title: `Page(${params.slug})`, | ||
openGraph: { | ||
images: new URL("../triangle-black.png", import.meta.url).pathname, | ||
}, | ||
}; | ||
} |
20 changes: 3 additions & 17 deletions
20
crates/next-dev-tests/tests/integration/next/app/metadata/input/app/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,5 @@ | ||
import type React from "react"; | ||
import Test from "./test"; | ||
import { redirect } from "next/navigation"; | ||
|
||
export default function Page(): React.ReactElement { | ||
return ( | ||
<div> | ||
<Test /> | ||
</div> | ||
); | ||
} | ||
|
||
export async function generateMetadata({ params }) { | ||
return { | ||
title: "Page", | ||
openGraph: { | ||
images: new URL("./triangle-black.png", import.meta.url).pathname, | ||
}, | ||
}; | ||
export default function Page() { | ||
redirect("/slug_name"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
crates/next-dev-tests/tests/integration/next/app/metadata/input/next-env.d.ts
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
crates/next-dev-tests/tests/integration/next/app/metadata/input/tsconfig.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
0241014
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
turbo-site – ./docs
turbo.build
turborepo.org
turbo.vercel.app
www.turbo.build
www.turborepo.com
turbo.vercel.sh
turbopack.org
www.turbopack.org
turbo-site.vercel.sh
www.turborepo.org
turbo-site-git-main.vercel.sh