-
-
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
[v2] Deploying to GitHub pages removes custom domain from repository settings #3889
Comments
I don't understand what you mean by "not modify the repository settings". I don't see a If you feel like we could document this better, don't hesitate to submit a PR please |
Indeed I somehow completely missed this information regarding the CNAME file, not sure how it happened. The issue I'm experiencing is actually documented here https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/troubleshooting-custom-domains-and-github-pages#cname-errors
I don't know if it would be relevant to highlight this section in a |
yes using an :::info box could be helpful, please send a doc PR :) |
I am running into this issue too. The repo is here: https://github.com/authcrunch/authcrunch.github.io I have What is the fix? |
@greenpau how is this the same issue. The op above forgot to create a If you have an issue despite having a CNAME file then it's a different problem. And in practice I do see your custom domain not being "cleared": https://docs.authcrunch.com/ |
I fixed the issue by adding “static/CNAME” file. Previously, I only had CNAME at the root of the directory tree. |
🐛 Bug Report
If you deploy to GitHub pages with a custom domain, the custom domain will be removed from the repository settings and you need to re-add it after every deploy.
Have you read the Contributing Guidelines on issues?
Yes I did.
To Reproduce
configure a custom domain for GitHub pages
docusaurus.config.js
, seturl
to your custom domain, with/
asbaseUrl
yarn deploy
Expected behavior
It should deploy the site at the custom domain and not modify the repository settings
Actual Behavior
It deploys the site at the default github.io domain, if you go back to the GitHub repository settings you can notice the custom domain was removed, you need to manually re-add it.
Your Environment
Docusaurus v2.0.0-alpha.70
Reproducible Demo
https://github.com/Alex1304/botrino
The text was updated successfully, but these errors were encountered: