Skip to content

Commit

Permalink
try 1 to fix vercel api issue (#212)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
devvsakib committed Jul 28, 2024
1 parent 9d8c5e3 commit d8d1b7f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/Doc/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const DocList = () => {
useEffect(() => {
const fetchDocs = async () => {
try {
const response = await fetch('https://github-error-solve.vercel.app/docs/index.json');
const response = await fetch('/posts/index.json');
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Doc/single doc/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const DocDetail = () => {
useEffect(() => {
const fetchContent = async () => {
try {
const response = await fetch(`/docs/${slug}.md`);
const response = await fetch(`/posts/${slug}.md`);
if (!response.ok) {
throw new Error(`Failed to fetch content: ${response.statusText}`);
}
Expand Down

0 comments on commit d8d1b7f

Please sign in to comment.