Next.js Discord

Discord Forum

google site verification without DNS

Answered
Pembroke Welsh Corgi posted this in #help-forum
Open in Discord
Pembroke Welsh CorgiOP
Hi,
I'm trying to get Google site verification for search console. I can't add a txt field to DNS as crazydomains make you pay for "premium dns" and for some reason CNAME is not working after 48 hours. So I tried to do a HTML verification file. putting the googleasdjnf2w3e3f.html file in app directory didn't seem to work. So I created a googleasdjnf2w3e3f.tsx file
export default function GoogleSiteVerification() {
    return (
    <span>google-site-verification: googleasdjnf2w3e3f.html</span>
    )
}

This is also not working.
Anyone have any ideas how I can get this to work without DNS editing?
Answered by joulev
add public/googleasdjnf2w3e3f.html with the content you need
View full answer

2 Replies