My Next.JS project is really slow when being accessed through a custom domain. The page takes like 2 seconds to load and calling server actions is also really slow (2-4s), it works fine when using the vercel.app domain though. Another site using the same domain is loading really fast, the domain shouldn’t be the issue. Here is a screenshot of the Cloudflare DNS record:
Really hope that someone can help me with this
Hi, @jan20202020!
Here are some things you could try:
- Your current setup shows that the proxy status is set to “DNS only.” This means Cloudflare is not providing any CDN or additional caching features, which could help with performance.
- Go to your Vercel dashboard, navigate to your project settings, and make sure your custom domain (
dev.yourdomain.com
) is correctly configured and there are no errors. - Are your SSL/TLS settings are correctly configured? Sometimes, misconfigurations can cause delays due to SSL handshakes
Hey, thanks for the reply.
It seemed like i had some issues with my SSG which were causing the slow load times, managed to resolve that issue now. The Server Actions still seem quite slow (almost 1s for a single db operation), that might my fault though.
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.