Portfolio: serve portfolios on subdomains

未关闭
#49 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
1
派生
1
平均合并
8 小时 58 分钟
30 天内合并 PR
37

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

procoderji-com/procoderji 的其他 Issue

查看 procoderji-com/procoderji 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。