-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Invalid URL while trying to build with sitemap not set to false #8116
Comments
🤪 hard to understand but I figured it out: - url: 'hreniuc.dev',
+ url: 'https://hreniuc.dev', I guess the config value you provide is fine and we should instead ensure that our normalization process will always normalize it to add the missing Anyone want to contribute this? (please directly submit a PR on your own if you want, don't ask if you can contribute and then go silent) |
I don't think that's a totally safe thing to do. We should just throw on anything that doesn't pass |
Fine with both solutions. Agree it looks safer to ask user to always provide a protocol 👍 Also thought it was the case 😅 Joi is just a pain |
I'd like to work on this so here's my PR #8159 for your review |
Ahh should have probably put in a heads-up that I was working on this |
Yeah, it's always a good idea to at least give a heads-up—especially since it's October😅 |
* fix: throw error for site URL in sub-path format * Also update unit tests to check error is thrown
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
I'm using v2.1.0 and I've noticed that I get an error when I want to create a production build with sitemap not set to false, the
yarn run start
works with no issue, but when I runyarn run build
I get a build error. If I set thesitemap
option to false, it builds without errors. I use it as a blog only.Reproducible demo
No response
Steps to reproduce
git clone https://gitlab.com/chreniuc/hreniuc-dev -b failed_build cd hreniuc-dev yarn install yarn run build
Expected behavior
To build successfully.
Actual behavior
I'm receiving this error:
Your environment
Self-service
The text was updated successfully, but these errors were encountered: