- site/server: Discord OAuth2 + 봇 토큰 멤버 확인, 세션, 1회용 등록 코드·기기 키 인증, 게임 PC WebSocket 중계(JSON·음성 바이너리), 15초 무응답 잠금, 게임 이미지 캐시, 관리 CLI - site/web: 타임라인·따라 읽기 재생(단어 강조·이어듣기·현장 모드·재생 게인)·필터·검색·실시간·교정, 발로란트/롤 경기 상세, 잠금 화면(관리자 등록 코드), 모바일, 효과음 - deploy/site: Dockerfile·compose·deploy.sh·make-env.sh (.5, 포트 2972) - 앱 코어: 사이트 필터 묶음(킬·라운드)과 유저 필터 규칙 맞춤, hello 에 서버 ID Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
1.0 KiB
TypeScript
24 lines
1.0 KiB
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const sharedSrc = fileURLToPath(new URL('../../packages/shared/src/index.ts', import.meta.url));
|
|
// 목 서버(mock/server.mjs) 주소. 실제 배포에서는 사이트 서버가 같은 오리진으로 정적 파일을 서빙한다.
|
|
const backend = process.env.GVR_BACKEND ?? 'http://127.0.0.1:18787';
|
|
const proxy = {
|
|
'/api': { target: backend, changeOrigin: false },
|
|
'/auth': { target: backend, changeOrigin: false },
|
|
'/game-assets': { target: backend, changeOrigin: false },
|
|
'/mock': { target: backend, changeOrigin: false },
|
|
'/ws': { target: backend.replace(/^http/, 'ws'), ws: true },
|
|
};
|
|
|
|
export default defineConfig({
|
|
base: '/',
|
|
plugins: [react()],
|
|
resolve: { alias: { '@gvr/shared': sharedSrc } },
|
|
server: { port: 5173, host: '127.0.0.1', proxy, fs: { allow: ['.', '../../packages/shared'] } },
|
|
preview: { port: 4173, host: '127.0.0.1', proxy },
|
|
build: { outDir: 'dist', sourcemap: false, chunkSizeWarningLimit: 900 },
|
|
});
|