Skip to content

Commit 67ad98e

Browse files
Update next 14 (#688)
* update next, react, react-dom * update target property in next.config.js * update node version * lint files * lint and remove craCompat * switch to link legacy behavior * lint files * switch to image legacy behavior * fix photo display * update @testing-library/react * install @netlify/plugin-nextjs * remove output in next.config.js * upgrade to node 20 * update @netlify/plugin-nextjs * remove redundant babel config * stop throwing errors on invalid events; warn instead * update lock files * chore: apply missed changes after rebase * chore: switch to link legacy behavior * style: lint files * chore: update @netlify/plugin-nextjs * fix: remove legacyBehavior tag from town hall page * build: change from build to .next * test: add .babelrc to make tests pass * refactor: remove comments * refactor: remove unnecessary redirects file --------- Co-authored-by: Arsh Malik <[email protected]>
1 parent ba061f6 commit 67ad98e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+5742
-22429
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"presets": ["next/babel"]
3-
}
3+
}

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
node-version: [16.x]
22+
node-version: [20.x]
2323

2424
env:
2525
EVENTS_SPREADSHEET_ID: ${{ secrets.EVENTS_SPREADSHEET_ID }}

.github/workflows/node-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
node-version: [16.x]
22+
node-version: [20.x]
2323

2424
env:
2525
EVENTS_SPREADSHEET_ID: ${{ secrets.EVENTS_SPREADSHEET_ID }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
yarn.lock
78

89
# testing
910
/coverage
@@ -39,3 +40,6 @@ offoutput.json
3940
townhall.json
4041
past-townhall.json
4142
gmData.json
43+
44+
# Local Netlify folder
45+
.netlify

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/gallium
1+
lts/iron

_redirects

Lines changed: 0 additions & 2 deletions
This file was deleted.

components/ActiveLink.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const ActiveLink = ({ children, activeClassName, ...props }) => {
1414
: childClassName;
1515

1616
return (
17-
//clones child with className if className exists
18-
<Link {...props}>
17+
//clones child with className if className exists
18+
(<Link {...props} legacyBehavior>
1919
{React.cloneElement(child, {
2020
className: className || null,
2121
})}
22-
</Link>
22+
</Link>)
2323
);
2424
};
2525

components/Carousel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from 'next/image';
1+
import Image from 'next/legacy/image';
22
import React from 'react';
33

44
// width of each img in px

components/Committees/CommitteeEventCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from 'next/image';
1+
import Image from 'next/legacy/image';
22
import React from 'react';
33

44
function CommitteeEventCard(props) {

components/Committees/CommitteeSectionIntro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from '@fortawesome/free-brands-svg-icons';
99
import { faLink } from '@fortawesome/free-solid-svg-icons';
1010
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
11-
import Image from 'next/image';
11+
import Image from 'next/legacy/image';
1212
import React from 'react';
1313

1414
function CommitteeIconLink({ committee, link }) {

0 commit comments

Comments
 (0)