Prevent google from indexing Page on App Plattform Starter Domain

I recently added a custom domain to my Next.js project which is hosted on the App Plattform. Now my site is live on both my custom domain and the default app plattform starter domain (<name>

Both domains have the exact same content. I want my custom domain to rank on google, but I’m scared of getting punished by the googlebot, because it’ll detect the duplicate content on these two pages.

Is there any way to disable google indexing ONLY for the site deployed on the * domain? Vercel does this for example by adding a X-Robots Tag, is there any way to do something similar on digital ocean?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I am interested in the solution to this question. Can someone chime in ?

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up