Hub を公開する
本番 URL: https://lab.chocofon.com/ — 2026-06 設定時の Trial & Error を含む手順です。
全体の流れ
- Cloudflare Pages で GitHub 連携 → デプロイ
chocofon.comを Cloudflare DNS に追加- Squarespace でネームサーバー変更
- Pages に
lab.chocofon.comを Custom domain 追加
1. Pages プロジェクト作成
| GitHub 連携 | Only select repositories → CURSOR-file のみ |
|---|---|
| Root directory | Web_html/hub |
| Build command | 空欄 |
| Build output | / |
デプロイ後: https://cursor-file.pages.dev/
2. 初心者がハマったポイント
ネームサーバーは Cloudflare の DNS 画面では変更できない
Squarespace Domains → DNS → Domain Nameservers → Use Custom Nameservers で
Squarespace Domains → DNS → Domain Nameservers → Use Custom Nameservers で
nena.ns.cloudflare.com / nicolas.ns.cloudflare.com を入力。
「I updated my nameservers」ボタンが見つからない
Overview に Your domain is now protected by Cloudflare と出ていれば Active 済み。ボタンは消えます。
Overview に Your domain is now protected by Cloudflare と出ていれば Active 済み。ボタンは消えます。
HTTPS の鍵マークが見えない
最近の Chrome は HTTPS サイトでも鍵を表示しません。URL が
最近の Chrome は HTTPS サイトでも鍵を表示しません。URL が
https:// なら OK。
3. DNS レコード(Active 後)
| lab CNAME | cursor-file.pages.dev — Proxied(橙)OK |
|---|---|
| www CNAME | Squarespace — DNS only(灰) |
| A × 4 | Squarespace IP — DNS only(灰) |
| MX | smtp.google.com — Google Workspace 新形式、1件で OK |
| TXT | SPF / DKIM — DNS only |
4. 更新の流れ
Hub を編集 → git commit → git push → 自動デプロイ(1〜3分)
新ガイド追加: guides/ に HTML 作成 → data/guides.json に追記 → push
関連
Private リポジトリ: GitHub の
docs/ リンクは、リポジトリへのアクセス権がある場合のみ閲覧できます。一般公開されているのは lab.chocofon.com の Hub です。