[common/features] feat: 환경 변수 URL 방식 도입

This commit is contained in:
2025-08-08 17:22:58 +09:00
parent 2b3475a626
commit e4d52611d7
8 changed files with 202 additions and 6 deletions
+4
View File
@@ -4,12 +4,16 @@ import "@fontsource-variable/noto-sans-kr";
import { AppProvider } from "./providers";
import { cookies } from "next/headers";
import Script from "next/script";
const App = async ({ children }: Readonly<{ children: React.ReactNode }>) => {
const theme = (await cookies()).get("site-theme-key");
return (
<html lang="ko" data-theme={theme?.value}>
<head>
<Script src="/__ENV__.js" strategy="beforeInteractive" />
</head>
<body>
<AppProvider>{children}</AppProvider>
</body>