Losing Settings For Personal Domain On GitHub After Deploy React App
My problem
I losing settings for personal domain on GitHub after I deploy React app.
I have my personal domain: https://serdyuchenko.com/
And after each deploy, I automatically go to default domain: https://anton415.github.io/
And I need go to GitHub settings and change my domain again.
My Question
How I can stop auto return to default GitHub domain, after each React app deploy?
What I do
Link to my react app on GitHub
I use this instruction for deploy React app on GitHub
I add 'homepage' field for my project in package.json:
"homepage": "https://serdyuchenko.com/"
I have 'gh-pages' branch and I add deploy's script in package.json:
"deploy": "gh-pages -b master -d build",
What I don't know
I don't know is it problem with create-react-app or with github-pages. Or I need add some settings for my deploy's script?
Answer
It looks like your deploy deletes the CNAME file in your repository. GitHub Pages sets the custom domain according to the contents of the CNAME file. If there is no CNAME file in the repository then GitHub sets the default GitHub Pages domain.
Related Questions
- → Import statement and Babel
- → should I choose reactjs+f7 or f7+vue.js?
- → Uncaught TypeError: Cannot read property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined
- → .tsx webpack compile fails: Unexpected token <
- → React-router: Passing props to children
- → ListView.DataSource looping data for React Native
- → React Native with visual studio 2015 IDE
- → Can't test submit handler in React component
- → React + Flux - How to avoid global variable
- → Webpack, React & Babel, not rendering DOM
- → How do I determine if a new ReactJS session and/or Browser session has started?
- → Alt @decorators in React-Native
- → How to dynamically add class to parent div of focused input field?