sitename: https://main--telnyxdotcom-docs.netlify.app
I was following Netlify docs for setting up the visual editor and it’s failing on sitemap generation with:
warn: [cms-fs] Error converting file to document: voice/webrtc/quickstart/index.mdx
warn: [cms-fs] Error converting file to document: voice/webrtc/reactsdk/index.mdx
info: [content-store] → Loaded git content source data (project: e3e2a9bf): 1 model, 0 documents and 352 assets
info: Server started. Forwarding requests to: localhost:3000
info: ⚡ Open http://localhost:8090/_stackbit in your browser
ref: Content Modeling | Visual Editing Docs
logs: Netlify Create
My setup with stackbit.config.js
const stackbitConfig = {
stackbitVersion: "~0.6.0",
ssgName: "custom",
nodeVersion: "20",
contentSources: [
new GitContentSource({
rootPath: __dirname,
contentDirs: ["docs"],
models: [
{
name: "page",
type: "page",
filePath: "docs/{slug}.mdx",
fields: [
{
name: "title",
label: "SEO Title",
type: "string",
required: true,
},
{
name: "markdown_content",
label: "Body",
type: "markdown",
required: true,
},
],
},
],
assetsConfig: {
referenceType: "static",
staticDir: "static",
uploadDir: "img",
publicPath: "/assets",
},
}),
],
devCommand: "npm run dev -- --port {PORT} --host {HOSTNAME}",
};
export default stackbitConfig;
It’s failing on both “Netlify Create” and “Local development”