Next.js Discord

Discord Forum

Anyone have experience w/ IndexNow?

Unanswered
Nile Crocodile posted this in #help-forum
Open in Discord
Nile CrocodileOP
I’m looking at adding IndexNow to a project of mine that is currently OSS. One of the requirements is to have a .txt file at the root that is named after the API key (at least according to ahrefs) and then putting that key into that file.

I think that API key being public is potentially harmless, but I was curious if there was a way with Next and Vercel if I could potentially add the env var to Vercel and construct that file at build time? Or am I just being overly cautious?

0 Replies