Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Export links and the webcal feed 404 under npm run dev

Aperta Adatta ai principianti
#1,121 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

@dduugg ci sta già lavorando.

Dal 16/10/2026.

  • #1122 di @dduugg — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
83/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, nginx, node.js
Ambito
api, backend

Direzione di ricerca

Leggi app/facade.js e confronta il relativo routing di sviluppo con gli alias in services/nginx/conf.d/shift.conf. Segui i riferimenti al campo exportable e a API_ICS_URL menzionati nell’issue per confermare i percorsi richiesti. Aggiungi le due mappature nella facade di sviluppo, quindi verifica che entrambi gli URL restituiscano la stessa risposta di /api/ical.php con npm run dev.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Under npm run dev, every event's Export link returns 404, in both the Vue calendar and the Hugo theme. The all-events webcal feed does too.

/api/ics.php?event_id=11       -> 404   (what Export links to)
/api/ical.php?event_id=11      -> 200   (the real endpoint)
/api/shift-calendar.php        -> 404   (the webcal feed)

Cause

There's no ics.php or shift-calendar.php endpoint in app/. nginx serves ical.php under both names:

# services/nginx/conf.d/shift.conf
location = /api/ics.php            { proxy_pass http://node:3080/api/ical.php; }
location = /api/shift-calendar.php { proxy_pass http://node:3080/api/ical.php; }

and the API's exportable field (calDaily.getExportable()) and the Vue app's API_ICS_URL both point at ics.php. So production and the Docker setup work, but node dev has no nginx, and app/facade.js — which stands in for nginx there — doesn't map either name.

Production is unaffected. The cost is that ICS changes can't be checked end to end from the Export link without switching to Docker.

Fix

Mirror the two nginx aliases in facade.js, which only runs under npm run dev.

Lingua principale
JavaScript
Stelle
30
Fork
26
Merge medio
6g 24m
PR unite (30g)
6

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di shift-org/shift-docs

Tutte le issue di shift-org/shift-docs

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.