#robots txt environments

6 messages · Page 1 of 1 (latest)

burnt pond
#

Hello, I'm using astro-robots-txt to create my robots.txt but would like a different robots configuration for my staging and live environment. Is this possible?

I have the robots config currently being imported into my astro.config.mjs. as per the documentation.
https://www.npmjs.com/package/astro-robots-txt#usage

Any guidance would be appreciated thanks.

restive fogBOT
#
Quiet in here?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

pale trout
#

You can pass variables from env, just like I do for sitemap as this build generates two websites, each in a different language.

#

sitemap({ i18n: { defaultLocale: env.CONFIG_LANG, locales: { [env.CONFIG_LANG]: env.CONFIG_LOCALE }, }, })

burnt pond
#

Thank you 🙂