Skip to content

Commit 1e6caeb

Browse files
authored
Merge pull request #169 from codecoolture/renovate/major-nextjs-monorepo
Update nextjs monorepo to v13 (major)
2 parents 228cf75 + 935b621 commit 1e6caeb

File tree

6 files changed

+343
-245
lines changed

6 files changed

+343
-245
lines changed

components/Figure/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function Figure(props: FigureProps) {
99
}
1010

1111
Figure.Image = function FigureImage(props: Pick<ImageProps, "src" | "alt">) {
12-
return <Image src={props.src} alt={props.alt} placeholder="blur" />;
12+
return <Image src={props.src} alt={props.alt} placeholder="blur" className="Figure__Image" />;
1313
};
1414

1515
Figure.Caption = function FigureCaption(props: { children: React.ReactNode }) {

components/Figure/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
margin: 2em 0;
55
}
66

7+
.Figure__Image {
8+
max-width: 100%;
9+
height: auto;
10+
}
11+
712
.Figure__Caption {
813
font-size: var(--fs-s);
914
margin-top: 0.5rem;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NextMiddleware, NextResponse } from "next/server";
2-
import { getAcceptedLanguages } from "../lib/getAcceptedLanguages";
2+
import { getAcceptedLanguages } from "./lib/getAcceptedLanguages";
33

44
const middleware: NextMiddleware = (req) => {
55
if (req.nextUrl.pathname === "/") {

next.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* eslint-env node */
2+
3+
/**
4+
* @type {import('next').NextConfig}
5+
*/
6+
const nextConfig = {
7+
swcMinify: false,
8+
};
9+
10+
module.exports = nextConfig;

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
"dependencies": {
88
"@radix-ui/colors": "0.1.8",
99
"fathom-client": "3.5.0",
10-
"next": "12.0.8",
10+
"next": "13.1.6",
1111
"react": "18.2.0",
1212
"react-dom": "18.2.0",
1313
"react-icons": "4.7.1",
1414
"react-tooltip": "5.7.4",
15+
"sharp": "0.31.3",
1516
"yup": "0.32.11"
1617
},
1718
"devDependencies": {
18-
"@next/eslint-plugin-next": "12.0.8",
19+
"@next/eslint-plugin-next": "13.1.6",
1920
"@testing-library/cypress": "8.0.7",
2021
"@types/jest": "27.5.2",
2122
"@types/react": "17.0.47",

0 commit comments

Comments
 (0)