@devite/nuxt-sanity
Nuxt Sanity Integration
Advanced Sanity integration for Nuxt.js. Based on the official @nuxtjs/sanity module.
Quick Setup
Install the module to your Nuxt application with one command:
npx nuxi module add @devite/nuxt-sanity
That's it! You can now use Sanity with your Nuxt app ✨
Configuration
Further configuration can be done in the nuxt.config.ts file:
export default {
modules: [
'@devite/nuxt-sanity',
"@nuxt/image"
],
sanity: {
projectId: 'YOUR_PROJECT_ID',
dataset: 'YOUR_DATASET',
...
},
runtimeConfig: {
public: {
// Required for SanityPage component to set a correct "canonical" url
baseUrl: "https://www.example.com"
}
}
};
Contribution
Local development
# Install dependencies
pnpm install
# Generate type stubs
pnpm dev:prepare
# Generate module types and build the module
pnpm prepack
# Develop with the playground
pnpm dev
# Build the playground
pnpm dev:build
# Run ESLint
pnpm lint
# Run Vitest
pnpm test
pnpm test:watch
# Release new version
pnpm release
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.20.6 | MIT | ||
| 2.20.5 | ^3.5.44 | MIT | |
| 2.20.4 | ^3.5.44 | MIT | |
| 2.20.3 | ^3.5.39 | MIT | |
| 2.20.2 | ^3.5.33 | MIT | |
| 2.20.1 | ^3.5.33 | MIT | |
| 2.20.0 | ^3.5.32 | MIT | |
| 2.19.3 | ^3.5.32 | MIT | |
| 2.19.2 | ^3.5.27 | MIT | |
| 2.19.1 | ^3.5.27 | MIT | |
| 2.19.0 | ^3.5.27 | MIT | |
| 2.18.0 | ^3.5.27 | MIT | |
| 2.17.1 | ^3.5.26 | MIT | |
| 2.17.0 | ^3.5.24 | MIT | |
| 2.16.1 | 3.5.22 | MIT | |
| 2.16.0 | 3.5.22 | MIT | |
| 2.15.0 | 3.5.22 | MIT | |
| 2.14.2 | 3.5.18 | MIT | |
| 2.14.1 | 3.5.18 | MIT | |
| 2.14.0 | 3.5.13 | MIT | |
| 2.13.0 | 3.5.13 | MIT | |
| 2.12.2 | 3.5.13 | MIT | |
| 2.12.1 | 3.5.13 | MIT | |
| 2.12.0 | 3.5.13 | MIT | |
| 2.11.2 | 3.5.13 | MIT | |
| 2.11.1 | 3.5.13 | MIT | |
| 2.11.0 | 3.5.13 | MIT | |
| 2.10.2 | 3.5.13 | MIT | |
| 2.10.1 | 3.5.13 | MIT | |
| 2.10.0 | 3.5.13 | MIT |
Showing the latest 30 of 68. See every release on npm