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
ed267be8
Commit
ed267be8
authored
Jan 20, 2026
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
cc9182da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
page.tsx
...board)/(user)/(outsideAuth)/exclusive-games/[id]/page.tsx
+0
-1
sitemap.ts
src/app/sitemap.ts
+0
-9
No files found.
src/app/(dashboard)/(user)/(outsideAuth)/exclusive-games/[id]/page.tsx
View file @
ed267be8
...
@@ -28,7 +28,6 @@ export async function generateMetadata(props: { params: Promise<{ id: string }>
...
@@ -28,7 +28,6 @@ export async function generateMetadata(props: { params: Promise<{ id: string }>
};
};
}
}
export
default
async
function
UserGameDetail
(
props
:
{
params
:
Promise
<
{
id
:
string
}
>
})
{
export
default
async
function
UserGameDetail
(
props
:
{
params
:
Promise
<
{
id
:
string
}
>
})
{
const
{
id
}
=
await
props
.
params
;
const
{
id
}
=
await
props
.
params
;
...
...
src/app/sitemap.ts
View file @
ed267be8
...
@@ -7,13 +7,11 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
...
@@ -7,13 +7,11 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const
frontendUrl
=
process
.
env
.
NEXT_PUBLIC_FRONTEND_URL
!
;
const
frontendUrl
=
process
.
env
.
NEXT_PUBLIC_FRONTEND_URL
!
;
const
apiUrl
=
process
.
env
.
NEXT_PUBLIC_BASE_URL
!
;
const
apiUrl
=
process
.
env
.
NEXT_PUBLIC_BASE_URL
!
;
// ✅ Fetch Menus
const
menuRes
=
await
fetch
(
`
${
apiUrl
}
/api/general/menus`
,
{
const
menuRes
=
await
fetch
(
`
${
apiUrl
}
/api/general/menus`
,
{
next
:
{
revalidate
:
48600
},
next
:
{
revalidate
:
48600
},
});
});
const
menuData
=
await
menuRes
.
json
();
const
menuData
=
await
menuRes
.
json
();
// ✅ Fetch Games
const
gameRes
=
await
getAllGames
();
const
gameRes
=
await
getAllGames
();
const
gameData
=
gameRes
?.
data
?.
data
||
[];
const
gameData
=
gameRes
?.
data
?.
data
||
[];
...
@@ -21,17 +19,12 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
...
@@ -21,17 +19,12 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
{
{
url
:
frontendUrl
,
url
:
frontendUrl
,
priority
:
1
priority
:
1
// lastModified: new Date(),
// changeFrequency: "monthly",
},
},
];
];
// ✅ Append /general/[slug]
if
(
menuData
?.
data
?.
length
)
{
if
(
menuData
?.
data
?.
length
)
{
const
menuUrls
:
MetadataRoute
.
Sitemap
=
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(),
// changeFrequency: "weekly",
priority
:
0.9
priority
:
0.9
}));
}));
...
@@ -42,8 +35,6 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
...
@@ -42,8 +35,6 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
if
(
gameData
.
length
)
{
if
(
gameData
.
length
)
{
const
gameUrls
:
MetadataRoute
.
Sitemap
=
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(),
// changeFrequency: "weekly",
priority
:
0.9
priority
:
0.9
}));
}));
...
...
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