2024-01-15 12:33:15 +00:00
|
|
|
import { ArticleDocsPage } from '@/components/ArticleDocsPage'
|
|
|
|
import { getDb } from '@/utils/ContentDatabase'
|
|
|
|
import { notFound } from 'next/navigation'
|
|
|
|
|
|
|
|
export default async function HomePage() {
|
|
|
|
const db = await getDb()
|
2024-01-30 14:19:25 +00:00
|
|
|
const article = await db.db.get(`SELECT * FROM articles WHERE articles.path = ?`, `/quick-start`)
|
2024-01-15 12:33:15 +00:00
|
|
|
if (article) return <ArticleDocsPage article={article} />
|
|
|
|
throw notFound()
|
|
|
|
}
|