diff --git a/apps/desktop/.env b/apps/desktop/.env index d742d05..9be1958 100644 --- a/apps/desktop/.env +++ b/apps/desktop/.env @@ -11,3 +11,6 @@ VITE_AI_MODEL=gpt-5.2 # 自身のURL (現在はOGP画像指定でのみ使用) VITE_SITE_URL=https://tsumugi-chan.com + +# Google +VITE_GOOGLE_VERIFICATION= \ No newline at end of file diff --git a/apps/desktop/app/root.tsx b/apps/desktop/app/root.tsx index 932732a..da6657e 100644 --- a/apps/desktop/app/root.tsx +++ b/apps/desktop/app/root.tsx @@ -91,6 +91,17 @@ export const meta: MetaFunction = () => { }, { name: 'twitter:image', content: `${SITE_URL}/og-image.png` }, { name: 'twitter:image:alt', content: 'Tsumugi - 小説執筆支援ツール' }, + + // Google + ...(import.meta.env.VITE_GOOGLE_VERIFICATION && + import.meta.env.VITE_GOOGLE_VERIFICATION.length !== 0 + ? [ + { + name: 'google-site-verification', + content: import.meta.env.VITE_GOOGLE_VERIFICATION, + }, + ] + : []), ]; };