-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic robot.txt & sitemap.xml #382
Conversation
src/utils/api.ts
Outdated
@@ -86,7 +86,7 @@ const requestAPI = ( | |||
|
|||
// Set the authorization header with the given token for next requests | |||
const getAuthorizationToken = () => { | |||
return localStorage.getItem('utt-arena-token'); | |||
return typeof localStorage !== 'undefined' ? localStorage.getItem('utt-arena-token') : undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il y en a toujours besoin ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non et si c'est utilisé on se retrouve dans données j'ai l'impression
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
à voir si tu arrives à utiliser l'API pour recup la liste des tournois quand même
Keep the branch |
* Create robots.txt * Delete abomination * Dynamical robots.txt but bug with sitemap.tsx * sitemap.xml is automatically created but with scss paths * only .tsx in sitemap * url without /page * changeFrequency = weekly * Solving error * It "works" but can't find tournament ids * comment problem * Why there is no tournaments?? * Sitemap works but tournamentId must be set by hand * pnpm lint * fix some errors --------- Co-authored-by: Antoine Dufils <[email protected]>
Automatic robot.txt & sitemap.xml
Changes
Adding robot.tsx and sitemap.tsx
What's left to do