Просмотр исходного кода

feat: add SEO optimization

hover-contact
ntasicc 3 лет назад
Родитель
Сommit
c4e4d8295f
2 измененных файлов: 7 добавлений и 0 удалений
  1. 2
    0
      pages/_app.js
  2. 5
    0
      pages/index.js

+ 2
- 0
pages/_app.js Просмотреть файл

@@ -20,6 +20,8 @@ function MyApp({ Component, pageProps: { session, ...pageProps } }) {
<SessionProvider session={session}>
<Layout>
<Head>
<title>NextJS template</title>
<meta name="description" content="NextJS template" />
<meta
name="viewport"
content="width=device-width, initial-scale=1"

+ 5
- 0
pages/index.js Просмотреть файл

@@ -1,11 +1,16 @@
import { dehydrate, QueryClient } from '@tanstack/react-query';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import Head from 'next/head';
import PaginationComponentRQ from '../components/pagination/react-query/PaginationComponentRQ';
import { getData } from '../requests/dataRequest';

const Home = () => {
return (
<>
<Head>
<title>NextJS template</title>
<meta name="description" content="Random data with pagination..." />
</Head>
<PaginationComponentRQ></PaginationComponentRQ>
</>
);

Загрузка…
Отмена
Сохранить