-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
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:- { label: "Layout", name: "layout", widget: "hidden", default: "blog" }
- { label: "Title", name: "title", widget: "string" }
- { label: "Description", name: "description", widget: "string" }
- { label: "Publish Date", name: "date", widget: "datetime" }
- { label: "Featured Photo", name: "featured", widget: "image", required: false }
- { label: "Body", name: "body", widget: "markdown" }