Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshayGMZ committed Sep 20, 2024
1 parent 270cc9d commit c219235
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/[id]/sitemap.xml/route.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { getServerSideSitemap, ISitemapField } from "next-sitemap";
import { neon } from "@neondatabase/serverless";
import { NextRequest } from "next/server";

async function getData(index: number) {
const sql = neon(process.env.SITEMAP_DB_URI || "", {
fetchOptions: { next: { revalidate: 1800 } },
});f
});
return (await sql(
`select loc, lastmod::Varchar(10), changefreq, priority from sitemap order by id offset ${index * 25000} limit 25000`,
)) as ISitemapField[];
Expand Down

0 comments on commit c219235

Please sign in to comment.