정적 운영 빌드에서 프로필별 base와 API 설정을 런타임 JSON으로 분리하고, 공용 Vite 번들과 sourcemap을 한 번만 생성·게시한다. Preview와 기존 정적 artifact의 전환 호환 경계는 유지한다.
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare module '*.vue' {
|
|
import type { DefineComponent } from 'vue';
|
|
const component: DefineComponent<Record<string, never>, Record<string, never>, Record<string, never>>;
|
|
export default component;
|
|
}
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_APP_BASE_PATH?: string;
|
|
readonly VITE_ASSET_BASE_PATH?: string;
|
|
readonly VITE_GATEWAY_API_URL?: string;
|
|
readonly VITE_GAME_API_URL?: string;
|
|
readonly VITE_GAME_SSE_URL?: string;
|
|
readonly VITE_GAME_ASSET_URL?: string;
|
|
readonly VITE_IMAGE_PUBLIC_URL?: string;
|
|
readonly VITE_GAME_PROFILE?: string;
|
|
readonly VITE_GATEWAY_WEB_URL?: string;
|
|
readonly VITE_GATEWAY_USER_ICON_BASE_URL?: string;
|
|
readonly VITE_BOARD_COMMUNITY_URL?: string;
|
|
readonly VITE_BOARD_REQUEST_URL?: string;
|
|
readonly VITE_BOARD_TIP_URL?: string;
|
|
readonly VITE_BOARD_PATCH_URL?: string;
|
|
readonly VITE_OFFICIAL_CHAT_URL?: string;
|
|
readonly VITE_CASUAL_CHAT_URL?: string;
|
|
readonly VITE_BUILD_COMMIT_SHA?: string;
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|