Skip to content

Commit d8d1b7f

Browse files
authored
try 1 to fix vercel api issue (#212)
* test vue * new error added * doc indiv new page added * major update on doc page * husky removed * some minor issue fix * code clean up + code optimize for color * new doc added * new post added + folder rename + minor changes * background color darker * ui + doc page issue fix * try 1 for api issue
1 parent 9d8c5e3 commit d8d1b7f

6 files changed

Lines changed: 2 additions & 2 deletions

File tree

File renamed without changes.
File renamed without changes.
File renamed without changes.
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('https://github-error-solve.vercel.app/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)