-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: nextjs __PRIVATE_NEXTJS_INTERNALS_TREE 누락 문제를 해결하고, 버전업으로 인한 wik…
…i 런타임 에러를 해결합니다 (#46) * fix: nextjs __PRIVATE_NEXTJS_INTERNALS_TREE 누락 문제 (#45) * fix: Add safeguard for undefined __PRIVATE_NEXTJS_INTERNALS_TREE in history state (Safari bugfix) * chore: nextjs version * fix: useSearchParams use client * chore: 불필요한 use client 삭제 (#47) * fix: Add safeguard for undefined __PRIVATE_NEXTJS_INTERNALS_TREE in history state (Safari bugfix) * chore: nextjs version * fix: useSearchParams use client * wiki 코드 개선 * chore: 불필요한 use client 삭제 --------- Co-authored-by: Chung-il Jung <[email protected]> --------- Co-authored-by: Chung-il <[email protected]>
- Loading branch information
1 parent
86aeb49
commit 5918611
Showing
16 changed files
with
86 additions
and
84 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
2 changes: 1 addition & 1 deletion
2
.../app/_shared/components/Readme/Readme.tsx → ...pp/_shared/components/WikiMDX/WikiMDX.tsx
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './WikiMDX' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export { SideNav } from './SideNav' | ||
export * from './Readme' | ||
export * from './Docs' | ||
export * from './WikiMDX' |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
import { DEFAULT_NAV_ITEM_ID, Docs } from '@/_shared' | ||
import { DEFAULT_NAV_ITEM_ID, WikiMDX } from '@/_shared' | ||
import './reset.css' | ||
|
||
export default function Page({ searchParams }: { searchParams: Record<'id', string> }) { | ||
return <Docs id={searchParams.id || DEFAULT_NAV_ITEM_ID} /> | ||
const WIKI_URI = 'https://raw.githubusercontent.com/wiki/hamsurang/origin' | ||
const ENCODED_DASH = '%E2%80%90' | ||
|
||
export default async function Page({ searchParams }: { searchParams: Record<'id', string> }) { | ||
const id = searchParams.id || DEFAULT_NAV_ITEM_ID | ||
|
||
const res = await fetch(`${WIKI_URI}/${id.replace(/-/g, ENCODED_DASH)}.md`) | ||
const wiki = await res.text() | ||
|
||
return <WikiMDX className="border-none pt-0 w-[896px] mobile:w-full" text={wiki} /> | ||
} |
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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