Skip to content

Commit 99d78dc

Browse files
committed
수정: Universe 정적 빌드 CORS 차단 해소
1 parent 19df10a commit 99d78dc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

landing/src/routes/universe/+page.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { createUniverseBrowser } from '$lib/browser/universeBrowser';
33
import type { UniverseReleaseState } from '@dartlab/ui-contracts';
44

55
export const prerender = true;
6-
export const ssr = true;
6+
// Universe 데이터는 HF 원본을 브라우저에서 읽는다. 정적 빌드가 이 요청을
7+
// 서버에서 실행하면 CORS 응답을 교차 출처로 판정하므로 셸만 prerender한다.
8+
export const ssr = false;
79

810
function universeReleaseState(): UniverseReleaseState {
911
const configured = (import.meta.env as Record<string, string | undefined>).VITE_DARTLAB_UNIVERSE_RELEASE_STATE;

0 commit comments

Comments
 (0)