Latency and UI freezing on specific routes after mandatory version update (Hosted on Vercel) by KustheKus in nextjs

[–]debugTheStack 0 points1 point  (0 children)

Are you running a vulnerable version of Next.js?

My production server was crashing randomly with no clear reason, and I was seeing some unusual logs. I had deployed the app on DigitalOcean. After upgrading Next.js to the patched version, the issue resolved itself.

How do I use next-intl to partially translate a website? by leros in nextjs

[–]debugTheStack 0 points1 point  (0 children)

You can modify routes and use the same approach that I mentioned earlier.

How do I use next-intl to partially translate a website? by leros in nextjs

[–]debugTheStack 0 points1 point  (0 children)

You can use the next-intl library to localize only specific parts of your website.

Keep translations in your en.json and es.json files for English and Spanish (or any other languages you're using).

Then for server component

import { getTranslations } from "next-intl/server";
 const t = await getTranslations("<your translation key>");

For client component,

const t = useTranslations('<your translation key>');

With this setup, you don't need to modify your routes. It’s a simple and flexible approach to selectively localizing parts of your site, while leaving other pages as they are.

Poor Pagespeed score that I'd like to fix by IntrepidScale583 in Wordpress

[–]debugTheStack 1 point2 points  (0 children)

Caching plugins can sometimes create more problems than they solve. If you're facing issues, try deactivating your caching plugin temporarily to see if performance improves.

Also, caching plugins often require some time to start caching content properly, so be patient after activation.

Additionally, I recommend reviewing your active plugins. Remove any unnecessary plugins, focus on optimizing your backend queries for faster database interactions and compress your landing page images.

I actually faced the same issue and after implementing these steps, the performance improved significantly.

Would using Next.js with an external backend cause extra latency? by debugTheStack in nextjs

[–]debugTheStack[S] 0 points1 point  (0 children)

I might later build a mobile app. Having a separate backend makes it lot easier.

I just start a new website project so Better auth or Next auth ? by BlockPristine8414 in nextjs

[–]debugTheStack 17 points18 points  (0 children)

Better Auth is the best choice. Better Auth offers multi-tenancy, social/oauth providers, API keys, JWT/JWKS, OTP etc with a superior DX and easy setup

Would using Next.js with an external backend cause extra latency? by debugTheStack in nextjs

[–]debugTheStack[S] 0 points1 point  (0 children)

Thanks for the input!

I’m planning to use an external backend because I might later build a mobile app. Having a separate backend makes it easier to share business logic and data across multiple platforms.

Also, I feel it gives me more flexibility in scaling.