Skip to content
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

local backend and auth #7217

Closed
krodelabestiole opened this issue May 29, 2024 · 3 comments
Closed

local backend and auth #7217

krodelabestiole opened this issue May 29, 2024 · 3 comments
Labels
type: bug code to address defects in shipped code

Comments

@krodelabestiole
Copy link

netlifyCMS used to have a local backend such as :

backend:
  name: local

from the fact it doesn't work anymore and the documentation I understand it has more or less been replaced by the git-gateway backend :

backend:
  name: git-gateway

local_backend: true

However the git-gateway backend is prompting me for an email and password -while the local backend was not.
Then it sends POST data to http://example.com/.netlify/identity/token which gives a 404 anyway.

I only use this for local testing purpose, no need for any auth. How could I get rid of this auth ?

@krodelabestiole krodelabestiole added the type: bug code to address defects in shipped code label May 29, 2024
@krodelabestiole
Copy link
Author

(sorry, it seems I can't remove the type: bug label)

@krodelabestiole
Copy link
Author

I finally got it to work with :

backend:
  name: proxy
  proxy_url: 'http://localhost:8081/api/v1'

while running npx decap-server

I wonder why there is nothing about that in the doc though !

@martinjagodic
Copy link
Member

if you're running npx decap-server, local_backend: true should be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

2 participants