Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Fix undefined env variables errors in sitemap.xml and robots.txt #295

Merged
merged 1 commit into from
Dec 29, 2020

Conversation

ruohola
Copy link
Member

@ruohola ruohola commented Dec 29, 2020

https://trello.com/c/uSjdKS7B/728-make-sitemapxml-and-robotstxt-files

Trying to destructure process.env variables won't work due to
the nature of webpack DefinePlugin.

Source: https://nextjs.org/docs/api-reference/next.config.js/environment-variables

More info: webpack/webpack#5392 (comment)

@ruohola ruohola requested a review from blomqma December 29, 2020 20:46
> Trying to destructure process.env variables won't work due to
> the nature of webpack DefinePlugin.
>
> Source: https://nextjs.org/docs/api-reference/next.config.js/environment-variables

More info: webpack/webpack#5392 (comment)
@ruohola ruohola merged commit 1397414 into develop Dec 29, 2020
@ruohola ruohola deleted the fix-sitemap-and-robots branch December 29, 2020 20:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants