feat(SW-550): added sync functionality and sitemap generation
* feat(SW-550): added sync functionality and sitemap generation
* feat(SW-550): Added support for splitting and saving multiple sitemaps when there are 50000+ urls
* feat(SW-550): Updates after PR
* feat(SW-550): Added locale to sitemap data
* feat(SW-550): Added support for locale based sitemapData
* feat(SW-550): Saving alternates of sitemap entries
* feat(SW-550): Refactoring to use sitemap utils file
* feat(SW-550): Using Netlify.env to get environment variables
* feat(SW-550): clarify use of functions
Approved-by: Michael Zetterberg
These are now defined in Netlify UI for dedicated environments (test, stage, production):
AUTH_URL
NEXTAUTH_URL
PUBLIC_URL
Code now falls back to incoming request host. Mainly used for
deployment previews which do not have Akamai in front, meaning
we do not need the above workaround as incoming request host
matches the actual public facing host. When Akamai is in front,
we lose the public facing host in Netlify's routing layer as they
internally use `x-forwarded-for` and we can't claim it for our usage.