-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
I keep getting redirect to deployed website when i try to access http://localhost:5173/admin/index.html #7067
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
Comments
@teotimepacreau does this happen on decap v3 also? |
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 package.json : 2024-01-30.14-53-26.mp4 |
I see. You need to run the local server, not login with GitHub. See here: https://decapcms.org/docs/working-with-a-local-git-repository/ |
now working thanks a lot ! 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: