Skip to content

feat: accounts を公開したので、ログインとアカウント管理の入口を普段から出す - #6

Merged
t1nyb0x merged 1 commit into
developfrom
feat/open-accounts-entry
Oct 11, 2026
Merged

t1nyb0x merged 1 commit into
developfrom
feat/open-accounts-entry

Conversation

@t1nyb0x

@t1nyb0x t1nyb0x commented Oct 11, 2026

Copy link
Copy Markdown
Member

なぜ

lumorphia/accounts を 2026-10-11 に公開した (Cloudflare Access を外した)。でも本番の lumorphia.com には、ログインとアカウント管理の入口が出ていない。#2 で「LUMORPHIA_ACCOUNTS_OPEN=1 でビルドしない限り隠す」としていて、Workers Builds にその変数が無いため。

変えたこと

  • 入口 (data-accounts-entry、ヘッダーのログイン・アカウントの案内・フッター) を普段から出し、lumorphia-accounts-origin も入れる (account.js がセッションを読み、ログインしていればメニューを出す。ADR-0014 のとおり)
  • 障害などで accounts を閉じるときだけ、Workers Builds のビルドの環境変数 LUMORPHIA_ACCOUNTS_CLOSED=1 で隠す
  • README を直す

Workers Builds に LUMORPHIA_ACCOUNTS_OPEN を設定していても、もう読まない (消してよい)。

確かめたこと

  • npm test (13 件)、npm run check が通る
  • npm run build で入口に hidden が付かず、origin が https://accounts.lumorphia.com になる。LUMORPHIA_ACCOUNTS_CLOSED=1 では 3 か所に hidden が付き、origin が空になる
  • dist をプレビューで開き、PC (1440px) とスマホ (390px) でヘッダーに「ログイン」が見え、https://accounts.lumorphia.com/login を指すことを見た

🤖 Generated with Claude Code

accounts は 2026-10-11 に公開した (Cloudflare Access を外した)。これまでは
LUMORPHIA_ACCOUNTS_OPEN=1 でビルドしない限り入口を隠していたが、Workers Builds に
その変数が無く、本番のトップにログインの入口が出ていなかった。普段は出し、障害などで
accounts を閉じるときだけ LUMORPHIA_ACCOUNTS_CLOSED=1 でビルドして隠す。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
555924e 2026-10-11T09:07:06.603Z View logs ↗

@t1nyb0x
t1nyb0x merged commit ae55ba4 into develop Oct 11, 2026
1 of 2 checks passed
@t1nyb0x
t1nyb0x deleted the feat/open-accounts-entry branch October 11, 2026 09:28
t1nyb0x added a commit that referenced this pull request Oct 11, 2026
release: ログインの入口を出し、Cloudflare Web Analytics を CSP で許可する (#6, #7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant