@pageel/cms
v2.1.0
Published
Astro integration for Pageel CMS
Downloads
17
Maintainers
Readme
@pageel/cms
Astro integration for Pageel CMS — add a /cms admin route to your Astro site.
Installation
npx astro add @pageel/cmsOr manually:
npm install @pageel/cms// astro.config.mjs
import pageelCms from '@pageel/cms';
export default defineConfig({
integrations: [pageelCms()]
});Features
- 🔄 Auto-detect content collections from
src/content/ - 📝 Auto-generate
.pageelrc.jsonwith detected collections - 🔗 Inject /cms route → redirects to Pageel CMS backend
- ⚙️ Zero config — works out of the box
Options
pageelCms({
cmsUrl: 'https://cms.pageel.app', // CMS backend URL
adminRoute: '/cms', // Admin route path
autoConfig: true, // Auto-generate .pageelrc.json
contentDir: 'src/content', // Content directory to scan
})How it works
- Scans
src/content/for subdirectories (= Astro content collections) - Generates/syncs
.pageelrc.jsonwith detected collections - Adds
/cmsroute that redirects to the Pageel CMS backend - Your CMS reads
.pageelrc.jsonto know which collections to manage
License
MIT
