
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI see you're encountering a production error with @q42/sanity-plugin-page-tree that doesn't occur in development. Without seeing the specific error message, it's difficult to provide an exact solution, but I can point you toward the most effective troubleshooting approach.
Share the actual error message - The error message from your production logs or browser console is critical for diagnosing the issue. Production errors can range from:
Each requires a different solution, so knowing the specific error is essential.
When plugins work in development but fail in production, it's typically because:
Dependencies aren't properly installed - Check that @q42/sanity-plugin-page-tree is listed in dependencies (not devDependencies) in your package.json
Build process differs - Production builds are optimized differently than dev mode. Try rebuilding from scratch:
rm -rf node_modules
rm -rf .sanity # or your build directory
npm install
npm run buildEnvironment configuration - Verify your production environment has the same Node.js version and environment variables as development
Caching issues - Your deployment platform may be using cached builds
Since this is a community plugin (not an official Sanity plugin), the best places to get support are:
Verify your sanity.config.ts is correct:
import {defineConfig} from 'sanity'
import {pageTree} from '@q42/sanity-plugin-page-tree'
export default defineConfig({
// ... other config
plugins: [
pageTree({
// your configuration
})
]
})Please share your error message and I or others in the community can provide specific guidance. Production errors can have many different causes, and the error message will tell us exactly what's going wrong.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store