-
Go to Settings → Pages in your repository.
-
In the Custom domain section, click Remove (if it's still set to "project.dawidolko.pl").
-
Save your changes.
-
(Optional) Uncheck / disable Enforce HTTPS (if checked).
After this step, GitHub Pages will stop trying to use your domain and go back to the default address.
- Go to the
frontend/public/folder and delete theCNAMEfile (or rename / clear its contents).
- The
CNAMEfile is responsible for configuring your custom domain - if you don't delete it, then with eachnpm run deployGitHub Pages will try to assign this custom domain again. 2. Save and commit changes:
git add public/CNAME
git commit -m "Remove CNAME for custom domain"(or delete the file completely and commit it too).
In the frontend/package.json file you probably have an entry like:
"homepage": "https://project.dawidolko.pl",You can delete it or replace it with the default GitHub Pages address, e.g.:
"homepage": "https://dawidolko.github.io/SmartRecommender-Project-Django-React"(Use the correct SmartRecommender-Project-Django-React.)
If you prefer not to set anything, you can simply delete this line.
Then save and commit.
- Go to the
frontenddirectory:
cd frontend- Run:
npm run deploy- Gh-pages will build the project, update the
gh-pagesbranch without theCNAMEfile and without the entry about your own domain.