Portfolio: serve portfolios on subdomains

Aperta
#49 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
next.js, typescript

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
TypeScript
Stelle
1
Fork
1
Merge medio
8h 58m
PR unite (30g)
37

Preparare l'ambiente

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

Tutte le issue di procoderji-com/procoderji

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.