Build and deployment issues
My changes aren't appearing after deployment
My changes aren't appearing after deployment
- Check deployment status: Visit the Mintlify dashboard to verify your deployment completed successfully.
- Clear browser cache: Hard refresh your browser (Cmd+Shift+R on Mac, Ctrl+Shift+R on Windows) or try incognito mode.
- Verify file is in navigation: Pages must be listed in
docs.jsonnavigation to be accessible. - Check for build errors: Run
mintlify devlocally to catch syntax or configuration errors before deploying.
Build fails with validation errors
Build fails with validation errors
Common causes:
- Invalid JSON in docs.json: Use a JSON validator to check for syntax errors like trailing commas or missing quotes.
- Missing required frontmatter: Every MDX file needs at minimum a
titlefield. - Broken internal links: Links to pages that don’t exist will cause build warnings. Use relative paths without file extensions.
mintlify dev locally to see detailed error messages.Preview deployments not working
Preview deployments not working
- Ensure preview deployments are enabled in your dashboard settings.
- Check that your GitHub/GitLab integration has the correct permissions.
- Verify the PR is targeting the correct branch configured in your dashboard.
Content and formatting issues
MDX components not rendering
MDX components not rendering
- Check component syntax: Components are case-sensitive. Use
<Note>not<note>. - Close all tags: Self-closing tags need a slash:
<br />not<br>. - Escape special characters: Use
\{to display literal curly braces in text. - Check for JSX conflicts: Angle brackets in code examples may need to be wrapped in backticks.
Code blocks not syntax highlighting
Code blocks not syntax highlighting
Ensure you specify the language after the opening backticks:Supported languages include:
javascript, typescript, python, bash, json, yaml, mdx, and many more.Images not displaying
Images not displaying
- Check the path: Use paths relative to your docs root, starting with
/. - Verify file exists: Ensure the image file is committed to your repository.
- Check file format: Supported formats include PNG, JPG, GIF, SVG, and WebP.
- File size: Very large images may fail to load. Optimize images under 1MB.
Tables not rendering correctly
Tables not rendering correctly
Ensure proper Markdown table syntax:
- Header row must be followed by a separator row with dashes
- Each row must have the same number of columns
- Pipes must align (though this is optional)
Navigation issues
Page not appearing in sidebar
Page not appearing in sidebar
Navigation order is wrong
Navigation order is wrong
Broken links showing 404
Broken links showing 404
- Use relative paths: Link to
/page-namenothttps://yourdocs.com/page-name. - Omit file extensions: Use
/guides/quickstartnot/guides/quickstart.mdx. - Check case sensitivity: Paths are case-sensitive on most systems.
- Add redirects: If you’ve moved a page, add a redirect in
docs.json:
Custom domain issues
Custom domain not working
Custom domain not working
- Verify DNS settings: Check that your CNAME record points to
cname.mintlify.com. - Wait for propagation: DNS changes can take up to 48 hours to propagate.
- Check SSL certificate: Mintlify automatically provisions SSL, but this can take a few minutes after DNS propagation.
- Verify in dashboard: Ensure the custom domain is correctly configured in your Mintlify dashboard.
SSL certificate errors
SSL certificate errors
SSL certificates are automatically provisioned. If you see certificate errors:
- Wait 10-15 minutes after DNS propagation for certificate provisioning.
- Clear your browser’s SSL cache or try a different browser.
- Verify your DNS is correctly pointing to Mintlify’s servers.
Local development issues
mintlify dev command not found
mintlify dev command not found
Install the Mintlify CLI globally:Or use npx to run without installing:
Local preview shows old content
Local preview shows old content
- Stop the dev server (Ctrl+C)
- Clear the
.mintlifycache folder in your project - Restart with
mintlify dev
Port already in use
Port already in use
The default port is 3000. If it’s in use, specify a different port:
Getting more help
If you’re still experiencing issues:- Check the status page for any ongoing incidents.
- Search the GitHub discussions for similar issues.
- Contact support through the Mintlify dashboard or at hi@mintlify.com.