Skip to content

Commit 58ad673

Browse files
chore: update to next 13 (#34)
* chore: update to next 13 * chore: update links
1 parent 975cb3c commit 58ad673

File tree

4 files changed

+265
-197
lines changed

4 files changed

+265
-197
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"@emotion/react": "^11.10.5",
2424
"@emotion/styled": "^11.10.5",
2525
"@fontsource/outfit": "^4.5.9",
26-
"@vercel/og": "^0.0.19",
26+
"@vercel/og": "^0.0.21",
2727
"clsx": "^1.2.1",
2828
"framer-motion": "^7.6.19",
2929
"lodash-es": "^4.17.21",
30-
"next": "^12.3.4",
30+
"next": "^13.0.6",
3131
"next-seo": "^5.15.0",
3232
"react": "^18.2.0",
3333
"react-dom": "^18.2.0",
@@ -40,12 +40,12 @@
4040
"@types/react": "^18.0.26",
4141
"commitlint": "^17.3.0",
4242
"eslint": "^8.29.0",
43-
"eslint-config-next": "12.3.1",
43+
"eslint-config-next": "13.0.6",
4444
"eslint-config-sznm": "^1.0.1",
4545
"husky": "^8.0.2",
4646
"lint-staged": "^13.1.0",
4747
"next-sitemap": "^3.1.32",
48-
"prettier": "^2.8.0",
48+
"prettier": "^2.8.1",
4949
"standard-version": "^9.5.0",
5050
"typescript": "^4.9.4"
5151
}

src/lib/pages/404/index.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ const Page404 = () => {
3838

3939
<Box textAlign="center" marginTop={4}>
4040
<Text>It&apos;s Okay!</Text>
41-
<Link href="/" passHref>
42-
<Button
43-
backgroundColor={colorMode === "light" ? "gray.300" : "teal.500"}
44-
>
45-
Let&apos;s Head Back
46-
</Button>
47-
</Link>
41+
<Button
42+
as={Link}
43+
href="/"
44+
backgroundColor={colorMode === "light" ? "gray.300" : "teal.500"}
45+
>
46+
Let&apos;s Head Back
47+
</Button>
4848
</Box>
4949
</Box>
5050
</>

src/lib/pages/home/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ const Home = () => {
1414
<Text>Edge service to generate embeddable dynamic OpenGraph image</Text>
1515

1616
<Flex justifyContent="center">
17-
<Link href="/generate" passHref>
18-
<Button as="a" colorScheme="teal">
19-
Generate
20-
</Button>
21-
</Link>
17+
<Button as={Link} href="/generate" colorScheme="teal">
18+
Generate
19+
</Button>
2220
</Flex>
2321
</Stack>
2422
);

0 commit comments

Comments
 (0)