From c59fbe9216d52053aef45f5aedbea5325fc366fc Mon Sep 17 00:00:00 2001 From: devunt <337728+devunt@users.noreply.github.com> Date: Sat, 23 Nov 2024 07:53:05 +0000 Subject: [PATCH] =?UTF-8?q?fingerprintjs=20dynamic=20import=ED=95=A8=20(#1?= =?UTF-8?q?505)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 서버사이드에서 fingerprintjs 임포트 하지 않음 --- apps/usersite/src/lib/utils/track.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/usersite/src/lib/utils/track.ts b/apps/usersite/src/lib/utils/track.ts index 875f83a6..e19636e2 100644 --- a/apps/usersite/src/lib/utils/track.ts +++ b/apps/usersite/src/lib/utils/track.ts @@ -1,6 +1,5 @@ import { browser } from '$app/environment'; import { env } from '$env/dynamic/public'; -import { getFingerprint } from './fingerprint'; type TrackParams = { siteId: string; @@ -10,6 +9,7 @@ type TrackParams = { export const track = async ({ siteId, kind, data }: TrackParams) => { if (browser) { + const { getFingerprint } = await import('$lib/utils/fingerprint'); navigator.sendBeacon( `${env.PUBLIC_API_URL}/logs`, JSON.stringify({ siteId, kind, deviceId: await getFingerprint(), data }),