Как установить и запустить Cloudea Blog
git clone https://github.com/BazZziliuS/cloudea-blog.git
cd cloudea-blog
npm install
npm run devПриложение будет доступно по адресу http://localhost:3000.
Откройте cloudea.config.ts и настройте:
const config: CloudeaConfig = {
title: "My Blog",
url: "https://example.com",
homepage: "landing",
customCss: ["styles/custom.css"],
i18n: {
defaultLocale: "ru",
locales: ["ru", "en"],
},
comments: {
provider: "giscus", // "giscus" | "supabase" | "none"
giscus: {
repo: "user/repo",
repoId: "R_xxx",
category: "comments",
categoryId: "DIC_xxx",
mapping: "pathname",
},
},
};Переопределите цвета в styles/custom.css:
:root {
--primary: oklch(0.55 0.13 230);
--primary-foreground: oklch(1 0 0);
}
.dark {
--background: oklch(0.07 0.025 265);
--primary: oklch(0.65 0.14 230);
}Файл подключается через массив customCss в конфиге.
http://localhost:3000https://<project>.supabase.co/auth/v1/callbackcloudea.config.ts → comments.giscusnpm run build
npm run startЕсли при установке возникают ошибки с нативными модулями, удалите
node_modulesиpackage-lock.json, затем выполнитеnpm installзаново.