From a0c94e1d019339babf8bd45b1ff192ade47fc6e7 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Wed, 27 Aug 2025 09:46:36 +0000
Subject: (김준회) 호스트네임에 따른 도메인별 spreadjs 라이선스 적용 처리 및
 운영용 환경변수 주석으로 추가
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/spread-js/dataBinding.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'components/spread-js/dataBinding.tsx')

diff --git a/components/spread-js/dataBinding.tsx b/components/spread-js/dataBinding.tsx
index b619f9f2..35b9ab28 100644
--- a/components/spread-js/dataBinding.tsx
+++ b/components/spread-js/dataBinding.tsx
@@ -6,9 +6,12 @@ import GC from "@mescius/spread-sheets";
 import "@mescius/spread-sheets-resources-ko";
 import { SpreadSheets } from "@mescius/spread-sheets-react";
 
+import { setupSpreadJSLicense } from "@/lib/spread-js/license-utils";
+
 GC.Spread.Common.CultureManager.culture("ko-kr");
-GC.Spread.Sheets.LicenseKey = process.env.NEXT_PUBLIC_SPREAD_LICENSE
-GC.Spread.Sheets.Designer.LicenseKey = process.env.NEXT_PUBLIC_DESIGNER_LICENSE
+
+// 도메인별 라이선스 설정
+setupSpreadJSLicense(GC);
 
 const DataBinding = () => {
   let spread = null;
-- 
cgit v1.2.3

