Skip to content

Commit

Permalink
Merge branch 'develop' into v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal authored Aug 16, 2024
2 parents 8fa9cf3 + 6293345 commit 909c279
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import { getPoseFeed } from '@/apis';
// import { getPoseFeed } from '@/apis';
import { URL } from '@/constants';

export default async function sitemap() {
const baseUrl = URL.site;

const {
filteredContents: { content },
} = await getPoseFeed(0, 0, '', 0);
const detailUrls = content.map(({ poseInfo }) => ({
url: `${baseUrl}/detail/${poseInfo.poseId}`,
lastModified: poseInfo.updatedAt,
}));
// const {
// filteredContents: { content },
// } = await getPoseFeed(0, 0, '', 0);
// const detailUrls = content.map(({ poseInfo }) => ({
// url: `${baseUrl}/detail/${poseInfo.poseId}`,
// lastModified: poseInfo.updatedAt,
// }));

return [
{ url: baseUrl, lastModified: new Date() },
{ url: `${baseUrl}/pick`, lastModified: new Date() },
{ url: `${baseUrl}/talk`, lastModified: new Date() },
{ url: `${baseUrl}/feed`, lastModified: new Date() },
...detailUrls,
// ...detailUrls,
];
}

0 comments on commit 909c279

Please sign in to comment.