aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/rss.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(hooks): remove useSettings hookArmand Philippot2023-11-151-11/+11
| | | | | | | It does not make sense to re-export an existing object through a hook. On some pages both the hook and the object was imported... It is better to use the CONFIG (previously settings) object directly and by doing it we avoid potential errors because of conditional hooks.
* refactor(routes): replace hardcoded routes with constantsArmand Philippot2023-10-241-9/+10
| | | | | | | | It makes it easier to change a route if needed and it avoid typo mistakes. I also refactored a bit the concerned files to be complient with the new ESlint config. However, I should rewrite the pages to reduce the number of statements.
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-2/+2
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-4/+4
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* chore: handle blog paginationArmand Philippot2022-05-131-2/+11
|
* chore: fetch posts for rss feedArmand Philippot2022-05-021-19/+25
|
* chore: use a different configuration depending on app envArmand Philippot2022-03-041-7/+6
| | | | | | It will be useful with Docker. Instead of cloning the project with a different configuration, I can manage two different configuration thanks to dotenv and some checking inside the app.
* feat: add HTTP security headersArmand Philippot2022-02-151-3/+3
| | | | | I also renamed and changed the format of some environment variables so I can reuse them inside the CSP security header.
* chore: improve RSS feed generation timeArmand Philippot2022-02-131-10/+5
|
* chore(baseline): handle baseline translation manuallyArmand Philippot2022-01-301-1/+1
| | | | | | I cannot use formatjs to translate the website baseline since I need an async function to load the message. If I use the getIntlInstance helper outside NextJS, webpack is complaining about fs and path.
* refactor(config): move config from config dir to utilsArmand Philippot2022-01-291-5/+5
|
* refactor(config): move defaultLocale as property of config.localesArmand Philippot2022-01-191-1/+1
| | | | | I will need the country code, so I think it makes more sense to gather them inside the same property.
* chore: add all posts from CMS to feedArmand Philippot2022-01-131-2/+10
|
* chore: add different feed formats (feed.xml, atom.xml, feed.json)Armand Philippot2022-01-131-2/+1
|
* chore: generate feedArmand Philippot2022-01-121-0/+54
I could loop until hasNextPage is false, but I'm not sure if it is the best solution. So, for now, only the first 100 posts will be added to the file.