SSG(Server Side Generation) 설정#39
Open
hyoseong1994 wants to merge 2 commits into
Open
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
daleui | 685ab35 | Commit Preview URL | May 27 2026, 12:38 AM |
hyoseong1994
commented
May 19, 2026
| "@react-router/node": "^7.15.1", | ||
| "browserslist": "^4.28.2", | ||
| "daleui": "^1.0.0", | ||
| "isbot": "^5", |
Collaborator
Author
There was a problem hiding this comment.
isbot은 react-router v7 빌드시 자동추가 (prerendering 하는 daleui.com에서는 필요없지만 의존성으로인하여 설치)
b61475e to
1c7d511
Compare
a8df128 to
12089bd
Compare
1c7d511 to
56a0ea4
Compare
4 tasks
56a0ea4 to
685ab35
Compare
SimYunSup
requested changes
May 27, 2026
| const el = document.documentElement; | ||
| return el.classList.contains("dark"); | ||
| }); | ||
| const [isDark, setIsDark] = useState(false); |
Member
There was a problem hiding this comment.
Dark mode fouc를 제한하려면 next-themes를 참고하세요.
| "build": "react-router typegen && tsc -b && react-router build", | ||
| "format": "prettier --check .", | ||
| "lint": "eslint .", | ||
| "test": "vitest", |
Member
There was a problem hiding this comment.
Suggested change
| "test": "vitest", | |
| "test": "vitest", | |
| "prepare": "react-router typegen", |
| const post = findBlog(params.slug); | ||
| if (!post) { | ||
| throw new Response("Not Found", { status: 404 }); | ||
| } |
Member
There was a problem hiding this comment.
loader부분에서 MDX 파일 + frontmatter를 가져와야 제대로 Static Rendering이 됩니다.
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.
사전조사때에는 vite-react-ssg를 사용하려하였으나 vite-react-ssg Github에서 react-router-dom v7를 추천하여 변경하게되었습니다.
prerendering은 node에서 동작(document없음)하며, useEffect를 실행하지 않습니다.
테스팅
체크 리스트