diff --git a/astro.config.mjs b/astro.config.mjs index 990e89e..c985b33 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -82,6 +82,9 @@ export default defineConfig({ devToolbar: { enabled: false }, + experimental: { + serverIslands: true + }, vite: { css: { preprocessorOptions: { diff --git a/src/components/blog/posts.astro b/src/components/blog/posts.astro index fe215ff..444dccf 100644 --- a/src/components/blog/posts.astro +++ b/src/components/blog/posts.astro @@ -4,9 +4,7 @@ const posts = await ghostClient.posts .browse({ limit: "all", }) - .catch((err) => { - console.error(err); - }); + .catch(() => {null}) ---
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 10c4ecd..fe94277 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -16,7 +16,7 @@ import { BookmarkBook, ReportColumns } from "@iconoir/vue"; - +
Loading posts...
diff --git a/src/pages/index.astro b/src/pages/index.astro index d1c9973..c14b6d7 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -26,12 +26,19 @@ import { BookmarkBook, ReportColumns } from "@iconoir/vue"; - +
Loading posts...
+ -