- 🥱 Zero config setup
- 💪 Fully type safe
usePagesFile
andusePagesCollection
- 🛡️ Auto-generated types for composables from
.pages.yml
- 🤗 Fully SSR and SSG friendly!
<script setup lang="ts">
const home = await usePagesFile("home"); // fully typed with only the files defined in .pages.yml
home; // fully typed based on the schema given in .pages.yml
</script>
Install the module to your Nuxt application with one command:
npx nuxi module add nuxt-pagescms
That's it! You can now use Nuxt PagesCMS in your Nuxt app ✨
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release