Skip to content

docs: 프로덕션 배포 시, 디버깅 로그 숨기기#271

Merged
heeeeyong merged 2 commits into
developfrom
chore/minor-updates
Sep 30, 2025
Merged

docs: 프로덕션 배포 시, 디버깅 로그 숨기기#271
heeeeyong merged 2 commits into
developfrom
chore/minor-updates

Conversation

@heeeeyong

@heeeeyong heeeeyong commented Sep 30, 2025

Copy link
Copy Markdown
Collaborator

#️⃣연관된 이슈

없음

📝작업 내용

이하동일

💬리뷰 요구사항

없음

Summary by CodeRabbit

  • Refactor
    • 독립적인 Memory 페이지 경로를 제거했습니다. 기존의 다른 경로를 통한 Memory 접근은 그대로 유지됩니다.
  • Chores
    • 빌드 설정을 모드 기반으로 개선했습니다. 프로덕션에서 일반 콘솔 로그와 debugger를 제거하고, 에러·경고 로그는 유지해 배포 품질을 향상했습니다.

@vercel

vercel Bot commented Sep 30, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
thip Ready Ready Preview Comment Sep 30, 2025 8:45am

@heeeeyong heeeeyong merged commit 7693bc1 into develop Sep 30, 2025
2 checks passed
@coderabbitai

coderabbitai Bot commented Sep 30, 2025

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

Walkthrough

라우터에서 memory 전용 경로가 제거되었고, Vite 설정이 정적 객체에서 모드 기반 함수 반환 형태로 변경되어 프로덕션에서만 콘솔/디버거 제거가 적용됩니다.

Changes

Cohort / File(s) Summary
Routing cleanup
src/pages/index.tsx
Route path="memory" 제거. 다른 경로(예: rooms/:roomId/memory)는 유지. 내보내기나 공개 API 변경 없음.
Build config by mode
vite.config.ts
export default defineConfig(({ mode }) => ({ ... }))로 전환. 프로덕션에서만 esbuildconsole 일부를 pure 처리하고 debuggerdrop. 비프로덕션은 esbuild 비워둠. 공개 시그니처는 함수 래핑으로 변경.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Dev as Developer
  participant Vite as Vite CLI
  participant Cfg as defineConfig(fn)
  participant ESB as esbuild

  Dev->>Vite: run (mode=development|production)
  Vite->>Cfg: invoke with { mode }
  alt mode == production
    Cfg-->>Vite: config { esbuild: { pure: ["console.log","console.info",...], drop: ["debugger"] } }
    Vite->>ESB: build with production esbuild opts
  else mode != production
    Cfg-->>Vite: config { esbuild: {} }
    Vite->>ESB: build without console/debugger stripping
  end
  Vite-->>Dev: bundle output
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

귀 쫑긋, 분기 타며 빌드 준비 끝!
메모리 길 하나 접고, 방 안길로 슝—
프로드엔 콘솔 잠재우고, 디버거 쿵✂️
데브엔 수다를 살려두는 여유 한 줌
깡총, 변경 머지! 당근 같은 코드 봄 🌱🐇

✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/minor-updates

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between a12689b and 474434f.

📒 Files selected for processing (2)
  • src/pages/index.tsx (0 hunks)
  • vite.config.ts (1 hunks)

Comment @coderabbitai help to get the list of available commands and usage tips.

@heeeeyong heeeeyong self-assigned this Sep 30, 2025
@heeeeyong heeeeyong added the 📃 Docs Improvements or additions to documentation label Sep 30, 2025
@heeeeyong heeeeyong changed the title chore: 프로덕션 배포 시, 디버깅 로그 숨기기 docs: 프로덕션 배포 시, 디버깅 로그 숨기기 Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📃 Docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant