Next app displays code on first load after build

I’ve got a Next 14 app using the App Router hosted on Netlify. The issue is, after every build, when you visit the page, it displays some code rather than the fully rendered website.

You only see the website after a few refreshes

The builds always go through so I’m doubtful it’s a build issue but I can’t seem to find out what is causing this particular problem.

I’d appreciate any help I can get.

My website lives here
This is the custom domain bought on Google domains

The DNS for hustlebean.app is not configured correctly. Are you wanting to use external DNS or Netlify DNS?

This guide will help you decide

Also note, if you wish to use Netlify DNS, you will need to disable DNSSEC which is currently active.

1 Like

Thank you very much. I’ll revert when I change the DNS configurations