Skip to content
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

feat(main): newsletter & top banners #380

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

majahendzel-va
Copy link
Contributor

No description provided.

Copy link

cloudflare-workers-and-pages bot commented Feb 6, 2025

Deploying angular-love-client with  Cloudflare Pages  Cloudflare Pages

Latest commit: 87d4b61
Status:🚫  Build failed.

View logs

@majahendzel-va majahendzel-va force-pushed the feat/multiple-banner-logic branch from 927dee7 to 5a7f82f Compare February 6, 2025 10:13
Comment on lines +12 to 14
getVisibleBanners() {
return this._http.get<Banners>(`${this._apiBaseUrl}/banners`);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we host this data as a json asset? it would be created in the build time as a part of the process in apps/blog/scripts/build-routes.mjs. This resource can be received via http client, similarly to libs/blog/articles/data-access/src/lib/guards/article-exists.guard.ts.

With current implementation we fetch banners from BFF for every available page. Basically it adds an extra request during prerendering. If we prerender 500 pages, it ends up with BFF 1000 request, where 50% is the same banners request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants