chore: migrate hosting documentation from Appwrite to self-hosted

Update README.md and astro.config.mjs to reflect the migration from
Appwrite to self-hosted infrastructure. Remove Appwrite-specific
environment variable schema from Astro config. Add .clinerules and
.cline to .gitignore.
This commit is contained in:
spaghet committed 2026-10-15 14:32:15 -04:00
1 parent d86f78fead
commit ac545c4668
53 files changed
+4109 -5117

No files matched your search

+15 -21
View File
@@ -1,31 +1,25 @@
---
import { getCollection } from "astro:content"
import PageLayout from "@layouts/PageLayout.astro"
import TopLayout from "@layouts/TopLayout.astro"
import BottomLayout from "@layouts/BottomLayout.astro"
import Blog from "@components/Blog"
import { BLOG } from "@consts"
import { getBlogPostsPaginated } from "@lib/appwrite-service"
// Get page and limit from URL parameters
const url = new URL(typeof window !== 'undefined' ? window.location.href : 'http://localhost')
const pageParam = url.searchParams.get('page') || '1'
const limitParam = url.searchParams.get('limit') || '10'
const page = parseInt(pageParam)
const limit = parseInt(limitParam)
// Fetch paginated blog posts
const { posts } = await getBlogPostsPaginated(page, limit)
.then(result => {
return result;
})
.catch(error => {
console.error("Error fetching blog posts:", error);
return { posts: [], total: 0 };
})
// Get all tags for filtering
const tags = [...new Set(posts.flatMap(post => post.tags))]
.sort((a, b) => a.localeCompare(b))
const entries = await getCollection("blog", ({ data }) => !data.draft)
const posts = entries.map((entry) => ({
id: entry.id,
slug: entry.id,
title: entry.data.title,
summary: entry.data.summary,
date: entry.data.date.toISOString(),
tags: entry.data.tags,
draft: entry.data.draft,
content: entry.body ?? "",
template: entry.data.template,
featured: entry.data.featured,
}))
const tags = Array.from(new Set(posts.flatMap((p) => p.tags)))
---
<PageLayout title={BLOG.TITLE} description={BLOG.DESCRIPTION}>