diff --git a/src/app.html b/src/app.html index 58c04404..5fc54cc3 100644 --- a/src/app.html +++ b/src/app.html @@ -3,7 +3,6 @@ - diff --git a/src/routes/+page.js b/src/routes/+page.js index c43483c3..edc24385 100644 --- a/src/routes/+page.js +++ b/src/routes/+page.js @@ -1,5 +1,5 @@ export const load = async ({ fetch }) => { - const response = await fetch(`/api/posts`) + const response = await fetch(`./api/posts`) const posts = await response.json() return { diff --git a/src/routes/[slug]/+page.js b/src/routes/[slug]/+page.js index bfc3b03a..a4127418 100644 --- a/src/routes/[slug]/+page.js +++ b/src/routes/[slug]/+page.js @@ -1,5 +1,5 @@ export const load = async ({ fetch }) => { - const response = await fetch(`/api/posts`) + const response = await fetch(`./api/posts`) const posts = await response.json() return {