Skip to content

Commit 44780b4

Browse files
committed
try 1 for api issue
1 parent cd89789 commit 44780b4

File tree

6 files changed

+2
-2
lines changed

6 files changed

+2
-2
lines changed
File renamed without changes.

src/pages/Doc/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const DocList = () => {
1212
useEffect(() => {
1313
const fetchDocs = async () => {
1414
try {
15-
const response = await fetch('/docs/index.json');
15+
const response = await fetch('/posts/index.json');
1616
if (!response.ok) {
1717
throw new Error(`HTTP error! status: ${response.status}`);
1818
}

src/pages/Doc/single doc/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const DocDetail = () => {
3232
useEffect(() => {
3333
const fetchContent = async () => {
3434
try {
35-
const response = await fetch(`/docs/${slug}.md`);
35+
const response = await fetch(`/posts/${slug}.md`);
3636
if (!response.ok) {
3737
throw new Error(`Failed to fetch content: ${response.statusText}`);
3838
}

0 commit comments

Comments
 (0)