Skip to content

Commit 98ebc9d

Browse files
committed
move merch messages above lttstore in sitemap
1 parent b65bdad commit 98ebc9d

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/routes/sitemap.txt/+server.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,33 +32,32 @@ export const GET = (async ({platform, fetch, url}) => {
3232
)
3333

3434
urls.push(
35-
...(await fetch("/api/lttstore/allHandles")
35+
...(await fetch("/api/merch-messages-v2/allShows")
3636
.then(r => r.json())
3737
.then((r: string[]) =>
3838
r
39-
.map(h => "/lttstore/products/" + h)
39+
.map(s => `/history/show/${s}/merch-messages`)
4040
))
4141
)
4242

4343
urls.push(
44-
...(await fetch("/api/news/allSlugs")
44+
...(await fetch("/api/lttstore/allHandles")
4545
.then(r => r.json())
4646
.then((r: string[]) =>
4747
r
48-
.map(s => "/news/" + s)
48+
.map(h => "/lttstore/products/" + h)
4949
))
5050
)
5151

5252
urls.push(
53-
...(await fetch("/api/merch-messages-v2/allShows")
53+
...(await fetch("/api/news/allSlugs")
5454
.then(r => r.json())
5555
.then((r: string[]) =>
5656
r
57-
.map(s => `/history/show/${s}/merch-messages`)
57+
.map(s => "/news/" + s)
5858
))
5959
)
6060

61-
6261
// these are at the bottom because they aren't important (and don't have SEO rn anyway)
6362
urls.push(...[
6463
"/lttstore/advanced-search",

0 commit comments

Comments
 (0)