You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I try to access the local admin page (http://localhost:5173/admin/index.html) it redirects me everytime to the deployed Netlify page, so I can't make any changes locally
Expected behavior
When going to the localhost admin/index.html page, accessin to the local DECAP admin panel and allow to add posts locally
Screenshots
2024-01-28.12-19-01.mp4
Applicable Versions:
Decap CMS version: 2.10.192
Git provider: GitHub
OS: Windows 11
Browser version : Chrome 120.0
Node.JS version: v18.17.0
CMS configuration
config.yml :
backend:
name: git-gateway
repo: teotimepacreau/Mairies-Sveltekit
branch: decap # Branch to update (optional; defaults to master)
This line should not be indented
publish_mode: editorial_workflow
These lines should not be indented
media_folder: "static/uploads" # Media files will be stored in the repo under static/uploads
public_folder: "/uploads" # The src attribute for uploaded media will begin with /uploads
collections:
name: "articles" # Used in routes, e.g., /admin/collections/blog
label: "Articles" # Used in the UI
folder: "src/articles" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{slug}}" # Filename template, e.g., title.md
fields:
Yes, I just tried with Decap v3 (installed through npm) and doing exactly the same problem no matter what I change in the config.yml. See my repo branch with Decap V3 in use
now working thanks a lot !
for Docs enhancement purpose, please add that "Run npx decap-servermust be run in parallel with the local development server of the app (typically npm run dev)" in https://decapcms.org/docs/working-with-a-local-git-repository/. Because doc is really unclear.
Please consider doing a beginner friendly tuto vid with the 2 approaches you are developping in your presentation vid (localhost and netlify deployed) Unleashing the Power of Git-Based Content Management Systems - Martin Jagodic (Decap CMS), because it makes believe that localhost and deployed DECAP admin page are available by default without modifying the config each time to switch between the two
Describe the bug
When I try to access the local admin page (http://localhost:5173/admin/index.html) it redirects me everytime to the deployed Netlify page, so I can't make any changes locally
Expected behavior
When going to the localhost admin/index.html page, accessin to the local DECAP admin panel and allow to add posts locally
Screenshots
2024-01-28.12-19-01.mp4
Applicable Versions:
CMS configuration
config.yml :
backend:
name: git-gateway
repo: teotimepacreau/Mairies-Sveltekit
branch: decap # Branch to update (optional; defaults to master)
This line should not be indented
publish_mode: editorial_workflow
These lines should not be indented
media_folder: "static/uploads" # Media files will be stored in the repo under static/uploads
public_folder: "/uploads" # The src attribute for uploaded media will begin with /uploads
collections:
label: "Articles" # Used in the UI
folder: "src/articles" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{slug}}" # Filename template, e.g., title.md
fields:
The text was updated successfully, but these errors were encountered: