[feat] QRコードに焼き込むドメインを t.nutfes.net に切り替える - #7
Merged
Conversation
印刷されるURLの大半はドメインだった。workers.dev のサブドメインは50文字で、 短縮コード(29文字削減)より支配的な要素になっていた。t.nutfes.net は20文字で、 シンボルが 49×49 から 37×37 モジュールに下がる。今回の一連の変更で最大の効果。 QR用のドメインだけを切り替え、管理APIは workers.dev のままにした。APIのURLの 長さは何のコストにもならず、据え置けば ALLOWED_ORIGINS もログインセッションも 触らずに済む。VITE_FWD_BASE_URL はもともとこの用途のために分けてあった。 ルートは wrangler.jsonc では宣言しない。ダッシュボードのCustom Domainとして 登録済みで、両方に書くとデプロイがダッシュボードと衝突する。どこで管理されて いるかが分からなくなるのが一番困るので、その旨をコメントに残した。 workers.dev のサブドメインは無効化しないこと。カスタムドメイン以前に印刷した QRコードはそちらを指しており、紙は刷り直せない。両方のホスト名が解決し続ける 必要がある。実測で両方とも302を返すことを確認済み。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
印刷されるURLの大半はドメインだった。workers.dev のサブドメインは50文字で、
短縮コード(29文字削減)より支配的な要素になっていた。t.nutfes.net は20文字で、
シンボルが 49×49 から 37×37 モジュールに下がる。今回の一連の変更で最大の効果。
QR用のドメインだけを切り替え、管理APIは workers.dev のままにした。APIのURLの 長さは何のコストにもならず、据え置けば ALLOWED_ORIGINS もログインセッションも
触らずに済む。VITE_FWD_BASE_URL はもともとこの用途のために分けてあった。
ルートは wrangler.jsonc では宣言しない。ダッシュボードのCustom Domainとして 登録済みで、両方に書くとデプロイがダッシュボードと衝突する。どこで管理されて
いるかが分からなくなるのが一番困るので、その旨をコメントに残した。
workers.dev のサブドメインは無効化しないこと。カスタムドメイン以前に印刷した
QRコードはそちらを指しており、紙は刷り直せない。両方のホスト名が解決し続ける
必要がある。実測で両方とも302を返すことを確認済み。
What & why
How this was tested
pnpm lintpnpm typecheckpnpm buildwrangler devScreenshots (if UI change)