Closed radoslavzeman closed 2 months ago
Test build pipeline info :rocket:
Changes in the code and tag info:
:arrow_right: Changes in strapi: true
:arrow_right: Changes in next: true
We are going to build :ship:
:soon: strapi
:soon: next
:partying_face: Bratiska-cli successfully built an image from path: strapi/
The aim of this PR is to propose a solution for routing of strapi content types (other than Pages), that should live on some specific urls, e.g.
/o-nas/novinky/[slug]
. This solution replaces our other solutions (map, translations, Navikronos), and uses normal strapi content type to store the routes. It also tries to use dynamic rewrites usingmiddleware.ts
instead of static rewrites defined innext.config.js
.This PR contains:
GeneralContextProvider
that fetches therouter
Notes:
articles
are added now - TODO other content typesRouter
is maybe not what we want