Build with Sanity MCP in Replit. Prizes up for grabs! Submit by June 14

Page Tree Plugin Works in Development but Fails in Production

2 repliesLast updated: Dec 1, 2025

Hello, I am trying to intergrate @q42/sanity-plugin-page-tree, it is working in development, but I am getting this error in production. Can you anyone help me
AI Update

I 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.

What You Need to Do First

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.

General Production vs Development Differences

When plugins work in development but fail in production, it's typically because:

Where to Get Help

Since this is a community plugin (not an official Sanity plugin), the best places to get support are:

Configuration Check

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.

Show original thread
2 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

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.

Related contributions