Portfolio: serve portfolios on subdomains

Offen
#49 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
next.js, typescript

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
1
Forks
1
Ø Merge
8 Std. 58 Min.
Gemergte PRs (30 T.)
37

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus procoderji-com/procoderji

Alle Issues in procoderji-com/procoderji

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.