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>.ondigitalocean.app).
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 *.ondigitalocean.app
domain? Vercel does this for example by adding a X-Robots Tag, is there any way to do something similar on digital ocean?
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!
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.
+1
I am interested in the solution to this question. Can someone chime in ?