Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Export links and the webcal feed 404 under npm run dev

Đang mở Phù hợp với người mới
#1,121 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 7 ngày

@dduugg đang làm issue này rồi.

Từ ngày 16/10/2026.

  • #1122 của @dduugg — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
83/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, nginx, node.js
Lĩnh vực
api, backend

Hướng nghiên cứu

Đọc app/facade.js và so sánh định tuyến dev của tệp này với các bí danh trong services/nginx/conf.d/shift.conf. Theo các tham chiếu đến trường exportable và API_ICS_URL được nêu trong issue để xác nhận các đường dẫn được yêu cầu. Thêm hai ánh xạ vào facade dev, sau đó xác minh cả hai URL trả về cùng phản hồi như /api/ical.php khi chạy npm run dev.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
30
Fork
26
Merge trung bình
6 ngày 24 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của shift-org/shift-docs

Tất cả issue của shift-org/shift-docs

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.