Comments (5)
I found a fix for this. I created a new git branch called master
and pushed it up to the GitHub remote. I then tried to log in again and this time it was successful. I don't know why admin auth via Netlify ID doesn't work when a branch called master
doesn't exist in the remote, even though main
is set as the the default branch in git as well as the production branch in Netlify. Maybe some older, hardcoded assumption to check for master
instead of main
? Note that I did not even need to deploy from master
to fix the problem: the fact that the GitHub API call the Netlify Hugo app makes finds a master
branch as expected is enough for it to work. See screenshot attached of API calls when login is unsuccessful.
from one-click-hugo-cms.
I was able to get this working by adding the branch: main
attribute for backend obj at the top of ./site/static/admin/config.yml
backend:
name: git-gateway
branch: main # add this line
from one-click-hugo-cms.
Ack! This is a gnarly bug y'all stumbled into! I fully agree with @jwsy's solution for changing the branch to main. I've recently made this change to the HEAD of the project so folks hopefully don't have this happen to them for the future! Thank you so much for reporting it and hope to be able to address any more problems with y'all!
from one-click-hugo-cms.
Thank you so much for the workaround, I was beating my head to the wall with this earlier!
from one-click-hugo-cms.
Closed with #674
from one-click-hugo-cms.
Related Issues (20)
- Serve site from subdirectory HOT 1
- Dependency Dashboard
- Image preview on Value page not working HOT 3
- Bug: 1-click site generation fails HOT 2
- switch from master to main HOT 1
- Build and start issues (maybe sass related) HOT 2
- Found no layout file for “HTML” for kind “taxonomy”: You should create a template file which matches Hugo Layouts Lookup Rules for this combination HOT 1
- Adds maintenance tooling HOT 1
- New stewardship and direction HOT 2
- Updating the build pipeline to include custom CMS templates for preview HOT 1
- [Production mode] Tachyons media queries are not working HOT 3
- Styling appears differently when running locally vs deployed to netlify HOT 4
- Deployment
- No rendered page after deploying on Netlify HOT 2
- Supplied tech.md page not editiable through the Netlify CMS interface
- Delete master branch and merge #479 into main HOT 1
- Teste site
- Response for config.yml was not yaml HOT 1
- npm install fails with npm ERR! notarget No matching version found for decap-cms-widget-date@^2.5.7. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from one-click-hugo-cms.