decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.96k stars 3.05k forks source link

local backend and auth #7217

Closed krodelabestiole closed 5 months ago

krodelabestiole commented 5 months ago

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 commented 5 months ago

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

krodelabestiole commented 5 months ago

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 commented 5 months ago

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