Portfolio: serve portfolios on subdomains

Đang mở
#49 2 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 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
next.js, typescript
Lĩnh vực
backend, infrastructure

Hướng nghiên cứu

Start by reading the parent issue #40 and the Phase 1 work; then inspect src/proxy.ts, the existing session cookie configuration, and related tests. The owner must first decide between a subdomain and a separate domain, and the canonical address must be chosen. Done means tests cover host rewriting, reserved names, canonical redirects, and host-only cookies, with DNS steps documented in docs/deployment.md.

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

Mô tả

enhancement portfolio

Part of #40. Starts after Phase 1.

Owner decision first

Use <username>.procoderji.com, or a separate domain for student pages, as GitHub uses github.io. A separate domain protects the main site's reputation if a page is abused.

Scope

  • DNS: wildcard domains on Vercel need Vercel nameservers, or delegating _acme-challenge to Vercel. See why nameservers are needed and the alternative.
  • src/proxy.ts (Next.js 16 Proxy, formerly Middleware) reads the host and rewrites <username>.<domain> to /u/<username>. No DNS record per student, and students never receive DNS or hosting credentials.
  • Reserved names from #42 never resolve. Unknown names return 404.
  • Choose one canonical address (subdomain or path) and redirect the other.
  • Keep session cookies host-only. procoderji.session currently has no Domain and uses Path=/api/platform; add a test so a future change cannot set Domain=.procoderji.com.

Done when

Tests cover host rewriting, reserved names and the canonical redirect, and docs/deployment.md documents the DNS steps.

Ngôn ngữ chính
TypeScript
Star
1
Fork
1
Merge trung bình
8 giờ 58 phút
Pull request đã merge (30 ngày)
37

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

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 procoderji-com/procoderji

Tất cả issue của procoderji-com/procoderji

Issue tương tự

Thêm issue về TypeScript

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.