Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedriad1 committed Dec 12, 2024
1 parent 661c1a3 commit 68a2770
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ const generateEntryFromUrl = (url: string) => ({
},
});

const isProd = env.VERCEL_ENV === "production";

export function generateSitemaps() {
// TODO: for now we have only 2 sitemaps, change that later to be dynamic
return [{ id: 1 }, { id: 2 }] as const;
Expand All @@ -37,6 +35,7 @@ export function generateSitemaps() {
export default async function sitemap(
params: ReturnType<typeof generateSitemaps>[number],
): Promise<MetadataRoute.Sitemap> {
const isProd = env.VERCEL_ENV === "production";
if (!isProd) return [];

if (params.id === 1) {
Expand Down

0 comments on commit 68a2770

Please sign in to comment.