Skip to content

Commit 3ecef99

Browse files
authored
Merge pull request #138 from wpengine/next-14-2-15
Bump next from 12.2.4 to 14.2.15
2 parents fdd8d80 + 5ecf649 commit 3ecef99

File tree

12 files changed

+4276
-2822
lines changed

12 files changed

+4276
-2822
lines changed

.github/workflows/blueprint-export-diff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fetch-depth: 0
1010
- uses: actions/setup-node@v2
1111
with:
12-
node-version: '16'
12+
node-version: '18'
1313
- name: Check for changes
1414
id: check-for-export-changes
1515
run: echo ::set-output name=check::$(git diff --name-only origin/main --exit-code -- acm-blueprint.zip)

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
node: ['16', '18' ]
8+
node: [ '18', '20' ]
99
steps:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-node@v2

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
- uses: actions/checkout@v2
88
- uses: actions/setup-node@v2
99
with:
10-
node-version: '16'
10+
node-version: '18'
1111
- run: npm install
1212
- run: npm run format:check
1313
continue-on-error: FALSE

components/Button/Button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function Button({
3838

3939
if (href) {
4040
return (
41-
<Link href={href}>
41+
<Link legacyBehavior href={href}>
4242
<a role="button" href={href} className={buttonClassName} {...props}>
4343
{children}
4444
</a>

components/Header/Header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function Header({ className, menuItems }) {
2929
<div className="container">
3030
<div className={cx('bar')}>
3131
<div className={cx('logo')}>
32-
<Link href="/">
32+
<Link legacyBehavior href="/">
3333
<a title="Home">
3434
<Image
3535
src="/logo.png"
@@ -57,7 +57,7 @@ export default function Header({ className, menuItems }) {
5757
menuItems={menuItems}
5858
>
5959
<li>
60-
<Link href="/search">
60+
<Link legacyBehavior href="/search">
6161
<a>
6262
<FaSearch title="Search" role="img" />
6363
</a>

components/Posts/Posts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Posts({ posts, intro, id }) {
4444
id={`post-${post.id}`}
4545
>
4646
<div className={cx('card')}>
47-
<Link href={post?.uri ?? '#'}>
47+
<Link legacyBehavior href={post?.uri ?? '#'}>
4848
<a className={cx('image-holder')} tabIndex="-1">
4949
<FeaturedImage
5050
className={cx('image')}
@@ -57,7 +57,7 @@ function Posts({ posts, intro, id }) {
5757
</Link>
5858

5959
<Heading level="h4" className={cx('header')}>
60-
<Link href={post?.uri ?? '#'}>
60+
<Link legacyBehavior href={post?.uri ?? '#'}>
6161
<a ref={isFirstNewResult ? firstNewResultRef : null}>
6262
{post.title}
6363
</a>

components/Projects/Projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function Projects({ projects, id, emptyText = 'No projects found.' }) {
4141
/>
4242
<div className={cx('content')}>
4343
<Heading level="h3">
44-
<Link href={project?.uri ?? '#'}>
44+
<Link legacyBehavior href={project?.uri ?? '#'}>
4545
<a ref={isFirstNewResult ? firstNewResultRef : null}>
4646
{project.projectFields.title}
4747
</a>

components/SearchRecommendations/SearchRecommendations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function SearchRecommendations({ categories }) {
1717
<ul>
1818
{categories?.map((node) => (
1919
<li key={node.databaseId}>
20-
<Link href={node.uri}>
20+
<Link legacyBehavior href={node.uri}>
2121
<a>{node.name}</a>
2222
</Link>
2323
</li>

components/SearchResults/SearchResults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function SearchResults({ searchResults, isLoading }) {
3232
<>
3333
{searchResults?.map((node) => (
3434
<div key={node.databaseId} className={styles.result}>
35-
<Link href={node.uri}>
35+
<Link legacyBehavior href={node.uri}>
3636
<a>
3737
<h2 className={styles.title}>{node.title}</h2>
3838
</a>

components/TaxonomyTerms/TaxonomyTerms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function TaxonomyTerms({ post, taxonomy }) {
1515
const { name, uri } = edge.node;
1616
return (
1717
uri && (
18-
<Link key={index} href={uri}>
18+
<Link legacyBehavior key={index} href={uri}>
1919
{name}
2020
</Link>
2121
)

0 commit comments

Comments
 (0)