fix(web): debug/posts.ts 삭제 후 남은 client-side import 정리 (main 빌드 핫픽스)#182
Merged
Conversation
PR #161 에서 클라이언트 Supabase 직접 호출 제거 시 `lib/supabase/queries/debug/posts.ts` 가 삭제됐는데, 이를 import 하던 client hook 과 컴포넌트가 정리되지 않아 main 빌드가 실패했습니다. ``` Module not found: Can't resolve '@/lib/supabase/queries/debug/posts' at packages/web/lib/hooks/debug/usePosts.ts:11:1 ``` debug-only 페이지의 client-side 부분을 제거하고 server component (`fetchLatestPostsServer`) 만 남깁니다: - delete `packages/web/lib/hooks/debug/usePosts.ts` - delete `packages/web/app/debug/supabase/posts/PostsClient.tsx` - `app/debug/supabase/posts/page.tsx` — `<PostsClient />` 참조 제거 검증: - `bun run generate:api && bun run build` — 빌드 성공 (전 라우트 컴파일) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #161 ("refactor(web): 클라이언트 Supabase 직접 호출 제거")에서 `packages/web/lib/supabase/queries/debug/posts.ts`가 삭제됐는데, 이를 import 하는 client hook 과 컴포넌트 정리가 빠져 main 머지 후 Vercel/Turbopack 빌드가 실패했습니다.
```
@decoded/web:build: ./packages/web/lib/hooks/debug/usePosts.ts:11:1
@decoded/web:build: Module not found: Can't resolve '@/lib/supabase/queries/debug/posts'
11 | import { fetchLatestPosts } from "@/lib/supabase/queries/debug/posts";
```
변경
debug-only 페이지의 client-side 부분을 제거하고 server component (`fetchLatestPostsServer`) 만 남깁니다:
debug 페이지는 그대로 동작합니다 — server-side render(`fetchLatestPostsServer`)만 남기고 React Query 를 통한 client refetch 부분만 제거.
Test plan
Notes
🤖 Generated with Claude Code