Skip to content

Commit

Permalink
comment problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine D committed Sep 17, 2024
1 parent 6acf95a commit e2868e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/sitemap.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { MetadataRoute } from 'next';
import fs from 'fs';
import path from 'path';
import { fetchId } from '@/modules/tournament';

export default function sitemap(): MetadataRoute.Sitemap {
/*const res = fetchId().then((truc: any) => {
console.log(truc);
});*/
const tournamentId = ['lol', 'cs2', 'osu'];
// Path to the directory containing your TSX files
const siteDirectory = path.join(process.cwd(), '/src/app');
Expand Down
8 changes: 8 additions & 0 deletions src/modules/tournament.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,12 @@ export const fetchSlots = (): AppThunk => async (dispatch) => {
dispatch(setSlots(slots));
};

/*export const fetchId = async (): Promise<string[]> => {
const res = await API.get('tournaments');
const resId = res.map((tournament: Tournament) => {
return tournament.id;
});
return resId;
};*/

export default tournamentSlice.reducer;

0 comments on commit e2868e3

Please sign in to comment.