Skip to content

Commit ef8e0c5

Browse files
chore(deps): bump next-seo from 6.8.0 to 7.0.1 (#370)
* chore(deps): bump next-seo from 6.8.0 to 7.0.1 Bumps [next-seo](https://github.com/garmeeh/next-seo) from 6.8.0 to 7.0.1. - [Release notes](https://github.com/garmeeh/next-seo/releases) - [Changelog](https://github.com/garmeeh/next-seo/blob/main/CHANGELOG.md) - [Commits](https://github.com/garmeeh/next-seo/compare/v6.8.0...next-seo@7.0.1) --- updated-dependencies: - dependency-name: next-seo dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: update next-seo v7 align * fix: import --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Agustinus Nathaniel <berserk.nate@gmail.com>
1 parent d26b07f commit ef8e0c5

File tree

8 files changed

+50
-46
lines changed

8 files changed

+50
-46
lines changed

next-seo.config.js

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"lodash-es": "^4.17.22",
4646
"nanoid": "^5.1.6",
4747
"next": "^16.1.1",
48-
"next-seo": "^6.8.0",
48+
"next-seo": "^7.0.1",
4949
"react": "^19.2.3",
5050
"react-dom": "^19.2.3",
5151
"react-fast-compare": "^3.2.2",

pnpm-lock.yaml

Lines changed: 7 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/pages/hall/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {
88
Grid,
99
useToast,
1010
} from '@chakra-ui/react';
11-
import { NextSeo } from 'next-seo';
11+
import Head from 'next/head';
12+
import { generateNextSeo } from 'next-seo/pages';
1213
import * as React from 'react';
1314

1415
import { FullScreenLoading } from '~/lib/components/full-screen-loading';
@@ -57,7 +58,7 @@ export const HallPage = () => {
5758

5859
return (
5960
<Box mb={8} w="full">
60-
<NextSeo title="Hall" />
61+
<Head>{generateNextSeo({ title: 'Hall' })}</Head>
6162
{currentUser && !isEmailVerified ? (
6263
<Alert borderRadius={24} status="warning">
6364
<AlertIcon />

src/lib/pages/home/index.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Button, Flex, Grid, Heading, Text } from '@chakra-ui/react';
2+
import Head from 'next/head';
23
import { useRouter } from 'next/router';
3-
import { NextSeo } from 'next-seo';
4+
import { generateNextSeo } from 'next-seo/pages';
45

56
import { SpokerWrapperGrid } from '~/lib/components/spoker-wrapper-grid';
67
import { EVENT_TYPE_NAVIGATE } from '~/lib/constants/tracking';
@@ -21,7 +22,12 @@ export const Home = () => {
2122

2223
return (
2324
<Grid paddingX={0} gap={16} minHeight={{ base: '50vh', sm: '60vh' }}>
24-
<NextSeo title="Estimate with your Team | spoker - real-time multiplayer scrum poker app" />
25+
<Head>
26+
{generateNextSeo({
27+
title:
28+
'Estimate with your Team | spoker - real-time multiplayer scrum poker app',
29+
})}
30+
</Head>
2531
<Flex
2632
direction="column"
2733
gap={12}

src/lib/pages/room/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Box, Grid } from '@chakra-ui/react';
2-
import { NextSeo } from 'next-seo';
2+
import Head from 'next/head';
3+
import { generateNextSeo } from 'next-seo/pages';
34

45
import { SpokerLoading } from '~/lib/components/spoker-loading';
56
import { useAuthStoreState } from '~/lib/stores/auth';
@@ -27,7 +28,7 @@ export const RoomPage = () => {
2728
if (currentUser && roomData) {
2829
return (
2930
<Grid gap={8}>
30-
<NextSeo title={roomData.room.name} />
31+
<Head>{generateNextSeo({ title: roomData.room.name })}</Head>
3132
<Grid
3233
templateColumns={{ base: '1fr', md: '3fr 2fr' }}
3334
gap={6}

src/pages/_app.tsx

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,42 @@
11
import { ChakraProvider, createStandaloneToast } from '@chakra-ui/react';
22
import type { AppProps } from 'next/app';
33
import Head from 'next/head';
4-
import { DefaultSeo } from 'next-seo';
4+
import { type DefaultSeoProps, generateDefaultSeo } from 'next-seo/pages';
5+
56
import '@fontsource/gabarito/latin.css';
67
import '@fontsource/gantari/latin.css';
78

89
import { Layout } from '~/lib/layout';
910
import { customTheme } from '~/lib/styles/theme';
1011

11-
import defaultSEOConfig from '../../next-seo.config';
1212
import '~/lib/styles/globals.css';
1313

1414
const { ToastContainer } = createStandaloneToast({ theme: customTheme });
1515

16+
const defaultSEOConfig: DefaultSeoProps = {
17+
title: 'vote!',
18+
titleTemplate: '%s | spoker - real-time multiplayer scrum poker with teams',
19+
defaultTitle: 'spoker',
20+
description: 'Real-time multiplayer scrum poker with teams',
21+
canonical: 'https://spoker.dev',
22+
openGraph: {
23+
url: 'https://spoker.dev',
24+
title: 'spoker',
25+
description: 'Real-time multiplayer scrum poker with teams',
26+
images: [
27+
{
28+
url: 'https://og.sznm.dev/api/generate?heading=Spoker&text=Scrum%20Poker%20with%20teams',
29+
alt: 'spoker.dev og-image',
30+
},
31+
],
32+
site_name: 'spoker',
33+
},
34+
twitter: {
35+
handle: '@agstnsnathaniel',
36+
cardType: 'summary_large_image',
37+
},
38+
};
39+
1640
const MyApp = ({ Component, pageProps }: AppProps) => {
1741
return (
1842
<>
@@ -22,8 +46,8 @@ const MyApp = ({ Component, pageProps }: AppProps) => {
2246
name="viewport"
2347
content="minimum-scale=1, maximum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no, viewport-fit=cover"
2448
/>
49+
{generateDefaultSeo(defaultSEOConfig)}
2550
</Head>
26-
<DefaultSeo {...defaultSEOConfig} />
2751
<Layout>
2852
<Component {...pageProps} />
2953
</Layout>

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"noEmit": true,
1010
"esModuleInterop": true,
1111
"module": "esnext",
12-
"moduleResolution": "node",
12+
"moduleResolution": "bundler",
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,
1515
"jsx": "preserve",

0 commit comments

Comments
 (0)