feat(prerender): add 'Neuheiten' category and update data fetching logic

- Introduce a new category 'Neuheiten' to the rendering process by appending it to the existing categories.
- Modify the data fetching logic to handle the 'neu' category ID correctly.
- Enhance the UI by adding a button for the 'Neuheiten' category in the CategoryList component, complete with styling and internationalization support.
This commit is contained in:
sebseb7
2025-10-21 02:10:49 +02:00
parent 1c9d3d5ad0
commit ded5fe330d
3 changed files with 69 additions and 2 deletions

View File

@@ -525,7 +525,14 @@ const renderApp = async (categoryData, socket) => {
let categoryPagesRendered = 0;
let categoriesWithProducts = 0;
for (const category of allCategories) {
const allCategoriesPlusNeu = [...allCategories, {
id: "neu",
name: "Neuheiten",
seoName: "neu",
parentId: 209
}];
for (const category of allCategoriesPlusNeu) {
// Skip categories without seoName
if (!category.seoName) {
console.log(