Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
# Conflicts:
#	svelte.config.js
  • Loading branch information
sinanatra committed Oct 11, 2023
2 parents e999a4e + 4711ae7 commit fb38ec9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 215 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
},
"type": "module",
"dependencies": {
"@sveltejs/adapter-static": "^2.0.3",
"gh-pages": "^6.0.0",
"locally-unique-id-generator": "^0.1.5",
"marked": "^4.2.12",
"mdsvex": "^0.10.6"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const prerender = true;
// export const prerender = true;
2 changes: 1 addition & 1 deletion src/routes/+page.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 2 additions & 4 deletions src/routes/[slug]/+page.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
export const load = async ({ fetch }) => {
const response = await fetch(`./api/posts`)
const response = await fetch(`/api/posts`)
const posts = await response.json()

return {
posts
}
}

export const prerender = "auto";
}
Loading

0 comments on commit fb38ec9

Please sign in to comment.