Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
0c541359
Commit
0c541359
authored
Dec 09, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the new change frequency
parent
7c1008c4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
sitemap.ts
src/app/sitemap.ts
+6
-5
No files found.
src/app/sitemap.ts
View file @
0c541359
...
@@ -15,7 +15,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
...
@@ -15,7 +15,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
// ✅ Fetch Games
// ✅ Fetch Games
const
gameRes
=
await
getAllGames
();
const
gameRes
=
await
getAllGames
();
const
gameData
=
gameRes
.
data
.
data
;
const
gameData
=
gameRes
?.
data
?.
data
||
[]
;
const
urls
:
MetadataRoute
.
Sitemap
=
[
const
urls
:
MetadataRoute
.
Sitemap
=
[
{
{
...
@@ -23,24 +23,25 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
...
@@ -23,24 +23,25 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
lastModified
:
new
Date
(),
lastModified
:
new
Date
(),
changeFrequency
:
"monthly"
,
changeFrequency
:
"monthly"
,
},
},
];
];
// ✅ Append /general/[slug]
// ✅ Append /general/[slug]
if
(
menuData
?.
data
?.
length
)
{
if
(
menuData
?.
data
?.
length
)
{
const
menuUrls
=
menuData
.
data
.
map
((
menu
:
any
)
=>
({
const
menuUrls
:
MetadataRoute
.
Sitemap
=
menuData
.
data
.
map
((
menu
:
any
)
=>
({
url
:
`
${
frontendUrl
}
/general/
${
menu
.
slug
}
`
,
url
:
`
${
frontendUrl
}
/general/
${
menu
.
slug
}
`
,
lastModified
:
new
Date
(),
lastModified
:
new
Date
(),
changeFrequency
:
"weekly"
,
changeFrequency
:
"weekly"
,
}));
}));
urls
.
push
(...
menuUrls
);
urls
.
push
(...
menuUrls
);
}
}
// ✅ Append /exclusive-games/[id]
// ✅ Append /exclusive-games/[id]
if
(
gameData
?
.
length
)
{
if
(
gameData
.
length
)
{
const
gameUrls
=
gameData
.
map
((
game
:
any
)
=>
({
const
gameUrls
:
MetadataRoute
.
Sitemap
=
gameData
.
map
((
game
:
any
)
=>
({
url
:
`
${
frontendUrl
}
/exclusive-games/
${
game
.
id
}
`
,
url
:
`
${
frontendUrl
}
/exclusive-games/
${
game
.
id
}
`
,
lastModified
:
new
Date
(),
lastModified
:
new
Date
(),
changeFrequency
:
"weekly"
,
}));
}));
urls
.
push
(...
gameUrls
);
urls
.
push
(...
gameUrls
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment