Write a paragraph about Alternative website architectures based on those bullet points:…
- User
Write a paragraph about Alternative website architectures based on those bullet points:
Typically, users navigate from the landing page or the home page to listing pages, info pages, product pages, and then to the basket (happy path).
Currently, when a user browses the website and goes from a homepage to a basket, they go through multiple apps with page reload navigation instead of next/link. In contrast, when someone changes languages, he or she stays in the same app.
It might be worth considering a new architecture where most of the happy path user journey would occur within a Next.js app.
If the new architecture is refactored, it might be possible to implement mono repo for all the frontend apps like turborepo.
There are 45 languages which could have 700 pages from CMS, which would increase build time significantly from currently 2 minutes if we pre-built the pages during the build phase.
As a way to achieve desired performance and the same time quick builds, it is possible to select only a few selected languages for pre-build and the most popular CMS pages. It would build the rest of the content on the fly when users request these resources (exactly as it does now).
This strategy could be achived by adding new field to Contentful “prebuild” flag (to mark document which be pick up to build on build phase)
hardcode wich languages to “prebuild” on build phase to reduce build time
- Assistant
Alternative website architectures can be considered to improve user navigation and performance. The traditional approach is to navigate from the landing or home page to listing pages, info pages, product pages, and then to the basket. However, this often involves navigating through multiple apps with page reloads, rather than using next/link. An alternative approach would be to use a Next.js app for most of the user journey, allowing for a smoother and more efficient navigation experience. Additionally, implementing a mono repo for all frontend apps, such as turborepo, could also be considered to improve performance and build time. With 45 languages and 700 pages from CMS, build time can become an issue. To address this, it may be possible to pre-build only a select number of languages and popular CMS pages, while building the rest of the content on the fly when users request it. This can be achieved by adding a new field in Contentful, such as a "prebuild" flag, and hardcoding which languages to pre-build during the build phase.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.