[SSR 비활성화] SPA 방식으로 변경

This commit is contained in:
sohot8653
2025-10-21 15:54:01 +09:00
parent 7bbbdbe977
commit f2a717df4f
8 changed files with 33 additions and 51 deletions

View File

@@ -1,8 +1,4 @@
export default async function useOverlay() {
if (import.meta.server) {
// SSR에서는 cytoscape-overlays를 사용하지 않음
return null
}
// 전체 export 객체를 반환
return await import('cytoscape-overlays')
}
// SPA 모드에서는 항상 클라이언트에서만 실행됨
return await import("cytoscape-overlays");
}