Skip to content

Commit 80475ee

Browse files
committed
Fix bug with sitemap not generating correctly
1 parent c51c9bc commit 80475ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/user/src/routes/sitemap.xml/+server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface Projects {
1111
}[]
1212
}
1313

14-
export async function GET() {
14+
export async function GET({ fetch }) {
1515
const query = `
1616
query projects {
1717
projects {
@@ -27,7 +27,7 @@ export async function GET() {
2727
}
2828
`;
2929

30-
const projects: Projects[] = (await graphql(query, {})).projects;
30+
const projects: Projects[] = (await graphql(query, {}, fetch)).projects;
3131
const baseURL = 'https://vectorinterior.design/';
3232
const langs = ['en', 'es']
3333
return new Response(

0 commit comments

Comments
 (0)