Jiseoup/showmycodePublic
EN|KO
  • 코드
  • 커밋
  • 풀 리퀘스트
← 목록으로

feat: fall back to GITHUB_OWNER for default site name

JiseoupJiseoup · 2026년 5월 12일db2d34a

변경된 파일3개+3 -3

변경된 파일

+3 -3 · 3개

@@ -4,7 +4,7 @@ import { ThemeToggle } from "@/components/ThemeToggle";
import { LangSwitcher } from "@/components/LangSwitcher";
import { getDictionary, type Locale } from "@/lib/i18n.server";
-const SITE_NAME = process.env.SITE_NAME || "showmycode";
+const SITE_NAME = process.env.SITE_NAME || process.env.GITHUB_OWNER || "showmycode";
export default async function HomePage({ params }: { params: Promise<{ lang: string }> }) {
const { lang } = await params;
@@ -4,7 +4,7 @@ import "./globals.css";
const inter = Inter({ subsets: ["latin"] });
-const SITE_NAME = process.env.SITE_NAME || "showmycode";
+const SITE_NAME = process.env.SITE_NAME || process.env.GITHUB_OWNER || "showmycode";
export const metadata: Metadata = {
title: SITE_NAME,
@@ -1,4 +1,4 @@
-# Site name shown in the header and browser tab title. Optional, defaults to "showmycode".
+# Site name shown in the header and browser tab title. Optional, defaults to GITHUB_OWNER.
SITE_NAME=
# GitHub Personal Access Token (Fine-grained, Read-only)