diff --git a/src/pages/server-sitemap.xml/index.tsx b/src/pages/server-sitemap.xml/index.tsx index 3637ec2..7a4345a 100644 --- a/src/pages/server-sitemap.xml/index.tsx +++ b/src/pages/server-sitemap.xml/index.tsx @@ -1,7 +1,7 @@ import { GetServerSideProps } from 'next'; import { gql } from 'graphql-request'; import { getServerSideSitemap } from 'next-sitemap'; -import { ISitemapFiled } from 'next-sitemap/dist/@types/interface'; +import { ISitemapField } from 'next-sitemap/dist/@types/interface'; import { createClient } from 'libs/graphql'; import { Query, QueryQualificationsArgs } from 'libs/graphql'; import { WEBSITE_URL, QUESTIONS } from 'config/app'; @@ -21,7 +21,7 @@ const LIMIT = 1000; export const getServerSideProps: GetServerSideProps = async ctx => { const client = createClient(); - let fields: ISitemapFiled[] = []; + let fields: ISitemapField[] = []; try { const { @@ -34,7 +34,7 @@ export const getServerSideProps: GetServerSideProps = async ctx => { fields = ([] as typeof fields).concat( ...QUESTIONS.map(limit => { return items.map( - (item): ISitemapFiled => { + (item): ISitemapField => { return { loc: `${WEBSITE_URL}${resolveAs({ pathname: Route.TestPage,